Skip to content

Commit 981b24b

Browse files
committed
refactor(package): update linter, fix app
1 parent 60f33f4 commit 981b24b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+12826
-5666
lines changed

.babelrc

+11-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
["transform-runtime", {
99
"polyfill": false,
1010
"regenerator": false
11+
}],
12+
["__coverage__", {
13+
"only": "src/"
1114
}]
12-
]
15+
],
16+
"env": {
17+
"test": {
18+
"plugins": [
19+
"__coverage__"
20+
]
21+
}
22+
}
1323
}

.eslintignore

-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
# node_modules ignored by default
2-
.idea/
3-
_builds/
4-
_projects/
5-
_steps/
6-
app/bower
72
app/dist
83
coverage
94
dist

.eslintrc

-19
This file was deleted.

.eslintrc.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
extends: [
3+
'airbnb',
4+
'plugin:lodash/recommended'
5+
],
6+
plugins: [
7+
'lodash'
8+
],
9+
parser: 'babel-eslint',
10+
rules: {
11+
'arrow-body-style': 0,
12+
'import/extensions': [2, 'never'],
13+
'import/no-extraneous-dependencies': 0,
14+
'lodash/prefer-constant': 0,
15+
'lodash/prefer-lodash-method': 0,
16+
'lodash/prefer-invoke-map': 0,
17+
'lodash/prefer-noop': 0,
18+
'max-len': [2, 120],
19+
'no-confusing-arrow': 0,
20+
'no-mixed-operators': 0,
21+
'no-nested-ternary': 0,
22+
'no-return-assign': 0,
23+
'no-plusplus': 0,
24+
'no-unused-vars': [2, { 'vars': 'all', 'args': 'none' }],
25+
'semi': [2, 'never'],
26+
}
27+
}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Each line in this file is passed to `rm -rf` on `npm run clean`
33
#
44

5+
.nyc_output/
56
coverage/
67
node_modules/
78
*.log*
9+
dist/
10+
app/dist/

app/.eslintrc

-14
This file was deleted.

app/.eslintrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
},
5+
"rules": {
6+
'import/no-unresolved': [2, { ignore: ['anny'] }],
7+
}
8+
}

0 commit comments

Comments
 (0)