Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit ecf78e7

Browse files
Merge pull request #181 from storybooks/chore/eslint
feat(eslint): add eslint file
2 parents 50d97ed + 4726943 commit ecf78e7

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.eslintrc.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
module.exports = {
2+
'env': {
3+
'browser': true,
4+
'es6': true,
5+
'node': true
6+
},
7+
'extends': ['eslint:recommended', 'plugin:react/recommended'],
8+
'globals': {
9+
'Atomics': 'readonly',
10+
'SharedArrayBuffer': 'readonly'
11+
},
12+
'settings': {
13+
'react': {
14+
'version': 'detect'
15+
}
16+
},
17+
'parserOptions': {
18+
'ecmaFeatures': {
19+
'jsx': true
20+
},
21+
'ecmaVersion': 2018,
22+
'sourceType': 'module'
23+
},
24+
'plugins': [
25+
'react'
26+
],
27+
'rules': {
28+
'indent': [
29+
'error',
30+
4
31+
],
32+
'linebreak-style': [
33+
'error',
34+
'unix'
35+
],
36+
'quotes': [
37+
'error',
38+
'single'
39+
],
40+
'semi': [
41+
'error',
42+
'always'
43+
],
44+
"max-len": [
45+
"error",
46+
120
47+
],
48+
"react/jsx-indent": [
49+
"error",
50+
4
51+
],
52+
"react/jsx-indent-props": [
53+
"error",
54+
4
55+
],
56+
'react/jsx-uses-react': 'error',
57+
'react/jsx-uses-vars': 'error'
58+
}
59+
};

0 commit comments

Comments
 (0)