Skip to content

Commit e1513d7

Browse files
authored
Merge pull request #214 from devinmatte/js_linting
Linting Javascript
2 parents 11547c0 + b7189f9 commit e1513d7

Some content is hidden

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

50 files changed

+2947
-2998
lines changed

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true
6+
},
7+
"extends": [
8+
"standard"
9+
],
10+
"globals": {
11+
"Atomics": "readonly",
12+
"SharedArrayBuffer": "readonly"
13+
},
14+
"parserOptions": {
15+
"ecmaVersion": 2018
16+
},
17+
"rules": {
18+
"no-undef": "off",
19+
"no-unused-vars": "warn",
20+
"no-prototype-builtins": "warn",
21+
"no-redeclare": "warn",
22+
"no-inner-declarations": "warn",
23+
"no-throw-literal": "warn"
24+
}
25+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ img/schedules/*.png
88

99
# Ignore node_modules dependencies
1010
node_modules/*
11+
package-lock.json
1112

1213
# Ignore built files
1314
assets/prod/*

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ php:
55
- 7.2
66
- 7.3
77
- nightly
8+
node_js:
9+
- 10
810

911
matrix:
1012
allow_failures:
1113
- php: 7.0
14+
- php: 7.2
15+
- php: 7.3
1216
- php: nightly
1317

18+
install:
19+
- npm install
20+
1421
script:
1522
- if find . -name "*.php" ! -path "./vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
23+
- npm run lint
24+
- npm run build

0 commit comments

Comments
 (0)