Skip to content

Commit 488b848

Browse files
chore: integrate prettier and eslint (#319)
1 parent adf1046 commit 488b848

19 files changed

+5422
-3708
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
insert_final_newline = true
13+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
root: true,
3+
plugins: ['prettier'],
4+
extends: ['@webpack-contrib/eslint-config-webpack'],
5+
rules: {
6+
'prettier/prettier': [
7+
'error',
8+
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' },
9+
],
10+
},
11+
};

.eslintrc.json

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

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
* text=auto
2-
31
package-lock.json -diff
2+
* text=auto
43
bin/* eol=lf

.gitignore

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
node_modules
2-
coverage
3-
dist
1+
logs
42
*.log
5-
.*
6-
!.gitignore
7-
!.npmignore
8-
!.babelrc
9-
!.travis.yml
10-
!.eslintrc.json
11-
!tests/helpers/directory/.dottedfile
3+
npm-debug.log*
4+
.eslintcache
5+
6+
/coverage
7+
/dist
8+
/local
9+
/reports
10+
/node_modules
11+
12+
.DS_Store
13+
Thumbs.db
14+
.idea
15+
.vscode
16+
*.sublime-project
17+
*.sublime-workspace
18+
*.iml
1219
compiled_tests

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"arrowParens": "always"
5+
}

.travis.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
1+
sudo: false
2+
3+
git:
4+
depth: 10
5+
16
language: node_js
27

3-
node_js:
4-
- stable
5-
- lts/*
6-
- 6
7-
- 4
8+
# cache node modules
9+
cache:
10+
directories:
11+
- $HOME/.npm
12+
- node_modules
813

9-
notifications:
10-
email: false
14+
matrix:
15+
include:
16+
- node_js: '11'
17+
script: npm run pretest
18+
env: CI=pretest
19+
- node_js: '11'
20+
script: npm run test:only
21+
env: CI=tests
22+
- node_js: '10'
23+
script: npm run test:only
24+
env: CI=tests 10
25+
- node_js: '6'
26+
script: npm run test:only
27+
env: CI=tests 6
28+
- node_js: '4'
29+
script: npm run test:only
30+
env: CI=tests 4

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ matrix:
1010
build: off
1111
shallow_clone: true
1212
test_script:
13-
- npm run test
13+
- npm run test:only

0 commit comments

Comments
 (0)