mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-02 09:46:28 +00:00
Add ESLint config for JS test files
This helps the editor catch simple syntax issues before finding out about them when running a test.
This commit is contained in:
parent
8ba3a24eae
commit
d55d42da8d
9
.eslintrc
Normal file
9
.eslintrc
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": "eslint:recommended",
|
||||
"rules": {
|
||||
"comma-dangle": 0,
|
||||
"no-unused-vars": 1,
|
||||
"strict": [2, "global"]
|
||||
}
|
||||
}
|
@ -1,6 +1,4 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": "eslint:recommended",
|
||||
"env": {
|
||||
"commonjs": true,
|
||||
"browser": true,
|
||||
@ -8,10 +6,5 @@
|
||||
},
|
||||
"globals": {
|
||||
"global": true
|
||||
},
|
||||
"rules": {
|
||||
"comma-dangle": 0,
|
||||
"no-unused-vars": 1,
|
||||
"strict": [2, "global"]
|
||||
}
|
||||
}
|
||||
|
8
tests/.eslintrc
Normal file
8
tests/.eslintrc
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"env": {
|
||||
"commonjs": true
|
||||
},
|
||||
"rules": {
|
||||
"no-unused-vars": 0
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user