Skip to content

Commit d155a0b

Browse files
committed
eslint and prettier config
1 parent e6fc25b commit d155a0b

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.eslintrc.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
"parser": "babel-eslint",
33
"env": {
44
"browser": true,
5-
"commonjs": true,
65
"es6": true,
76
"node": true
87
},
9-
"extends": ["standard", "prettier", "prettier/standard"],
8+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
109
"parserOptions": {
11-
"ecmaVersion": 2017,
10+
"ecmaVersion": 2018,
1211
"sourceType": "module"
1312
},
14-
"plugins": ["prettier", "standard"],
13+
"plugins": ["prettier"],
1514
"rules": {
1615
"no-useless-constructor": 0,
1716
"no-new": 0,

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
src/
33
.babelrc
44
.editorconfig
5+
.eslintcache
56
.eslintignore
67
.eslintrc.json
78
.prettierrc

.prettierrc

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"printWidth": 120,
3-
"tabWidth": 4,
4-
"useTabs": false,
5-
"semi": true,
6-
"singleQuote": true,
7-
"trailingComma": "none",
8-
"bracketSpacing": false,
9-
"arrowParens": "always",
10-
"proseWrap": "never"
2+
"printWidth": 120,
3+
"tabWidth": 4,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"arrowParens": "always",
9+
"proseWrap": "never",
10+
"endOfLine": "lf"
1111
}

0 commit comments

Comments
 (0)