ESLint
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": 2
}
}
ecmaVersion
- set to3
,5
,6
(or2015
),7
(or2016
),8
(or2017
) to specify the ECMAScript version to use. The default value is5
.