File tree 5 files changed +226
-5671
lines changed
5 files changed +226
-5671
lines changed Original file line number Diff line number Diff line change 1
1
{
2
+ "extends": [
3
+ "eslint:recommended",
4
+ "plugin:react/recommended",
5
+ "prettier",
6
+ "prettier/react"
7
+ ],
8
+ "parser": "babel-eslint",
9
+ "plugins": [
10
+ "react",
11
+ "prettier",
12
+ "babel",
13
+ "no-only-tests"
14
+ ],
15
+ "ignorePatterns": [
16
+ "node_modules",
17
+ "bundle.js",
18
+ "**/dist/",
19
+ "**/es/"
20
+ ],
2
21
"settings":{
3
22
"react":{
4
23
"version": "detect"
8
27
"es6": true,
9
28
"browser": true
10
29
},
11
- "extends": [
12
- "eslint:recommended",
13
- "prettier",
14
- "prettier/react",
15
- "plugin:react/recommended"
16
- ],
17
30
"rules": {
18
31
"consistent-return": 0,
19
32
"max-len": [1, 110, 4],
20
33
"max-params": ["error", 6],
21
34
"object-curly-spacing": 0,
22
35
"babel/object-curly-spacing": 2,
23
36
"no-only-tests/no-only-tests": 2,
24
- "react/prop-types": "off"
25
- },
26
- "parser": "babel-eslint",
27
- "plugins": [
28
- "react",
29
- "babel",
30
- "prettier",
31
- "no-only-tests"
32
- ]
37
+ "react/prop-types": "off",
38
+ "prettier/prettier": "warn"
39
+ }
33
40
}
Original file line number Diff line number Diff line change 4
4
"bracketSpacing": false,
5
5
"jsxBracketSameLine": false,
6
6
"semi": true,
7
- "parser": "babylon "
7
+ "parser": "babel "
8
8
}
Original file line number Diff line number Diff line change 26
26
" es6" ,
27
27
" babel"
28
28
],
29
- "scripts" :{
29
+ "scripts" : {
30
30
"remove-unpm-rfs" : " ./remove-refs-to-unpm.pl"
31
31
},
32
32
"devDependencies" : {
Original file line number Diff line number Diff line change 25
25
"start" : " (cd showcase && command -v yarn >/dev/null && yarn && npm start || npm install && npm start)" ,
26
26
"build:browser" : " browserify src/index.js -t [ babelify ] --standalone reactVis | uglifyjs > dist/dist.min.js" ,
27
27
"build" : " yarn run clean && babel src -d dist --copy-files && BABEL_ENV=es babel src -d es --copy-files && node-sass src/main.scss dist/style.css --output-style compressed && yarn run build:browser" ,
28
- "lint" : " eslint . --ignore-pattern node_modules --ignore-pattern bundle.js " ,
28
+ "lint" : " eslint ." ,
29
29
"lint-styles" : " stylelint src/styles/*.scss --syntax scss" ,
30
30
"test:windows" : " babel-node --inspect ./tests/index.js" ,
31
31
"test" : " node --inspect ./node_modules/.bin/babel-node ./tests/index.js" ,
You can’t perform that action at this time.
0 commit comments