Skip to content

Commit d4f54fb

Browse files
committed
use .eslintrc.js
1 parent e833414 commit d4f54fb

File tree

2 files changed

+37
-40
lines changed

2 files changed

+37
-40
lines changed

.eslintrc

Lines changed: 0 additions & 40 deletions
This file was deleted.

.eslintrc.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = {
2+
root: true,
3+
extends: 'eslint:recommended',
4+
parser: '@babel/eslint-parser',
5+
env: {
6+
browser: true,
7+
es6: true,
8+
node: true,
9+
jest: true,
10+
'cypress/globals': true,
11+
},
12+
plugins: ['markdown', 'cypress'],
13+
globals: {
14+
__DEV__: true,
15+
},
16+
rules: {
17+
'no-undef': 2,
18+
'no-unreachable': 2,
19+
'no-unused-vars': 0,
20+
'no-console': 0,
21+
semi: ['error', 'always'],
22+
quotes: ['error', 'single'],
23+
},
24+
overrides: [
25+
{
26+
files: ['src/content/**/*.md'],
27+
rules: {
28+
indent: ['error', 2],
29+
quotes: ['error', 'single'],
30+
'no-undef': 0,
31+
'no-constant-condition': 0,
32+
'no-useless-escape': 0,
33+
'no-dupe-keys': 0,
34+
},
35+
},
36+
],
37+
};

0 commit comments

Comments
 (0)