-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
38 lines (36 loc) · 1.23 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@salesforce/eslint-plugin-aura/recommended",
"plugin:@salesforce/eslint-plugin-aura/locker",
"@salesforce/eslint-config-lwc/recommended",
"@salesforce/eslint-config-lwc/i18n",
"@locker/eslint-config-locker/recommended",
"prettier"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"parserOpts": {
"plugins": ["classProperties", ["decorators", { "decoratorsBeforeExport": false }]]
}
}
},
"plugins": ["@salesforce/eslint-plugin-aura","@lwc/eslint-plugin-lwc", "@salesforce/eslint-plugin-lightning","@locker/eslint-plugin-locker"],
"rules": {
"@lwc/lwc/no-deprecated": "error",
"@lwc/lwc/valid-api": "error",
"@lwc/lwc/no-document-query": "error",
"@salesforce/lightning/no-aura-localization-service": "error",
"@salesforce/lightning/no-moment": "error",
"@salesforce/lightning/prefer-i18n-service": "error"
}
}