Skip to content

Commit

Permalink
Merge pull request #291 from WordPress/update/refine-eslint-config
Browse files Browse the repository at this point in the history
Refine ESLint configuration
  • Loading branch information
aduth authored Mar 19, 2017
2 parents 046be3d + 7d904ec commit f52de2d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2

Expand Down
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"root": true,
"extends": "wordpress",
"env": {
"browser": true
"browser": true,
"node": true
},
"parserOptions": {
"sourceType": "module"
Expand Down Expand Up @@ -37,6 +38,7 @@
"no-unreachable": "error",
"no-use-before-define": [ "error", "nofunc" ],
"object-curly-spacing": [ "error", "always" ],
"one-var": "off",
"padded-blocks": [ "error", "never" ],
"quote-props": [ "error", "as-needed", { "keywords": true } ],
"semi": "error",
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "node"
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
],
"scripts": {
"build": "cross-env NODE_ENV=production webpack",
"clean": "rimraf build"
"clean": "rimraf build",
"lint": "eslint editor",
"test": "npm run lint"
},
"devDependencies": {
"autoprefixer": "^6.7.7",
Expand Down

0 comments on commit f52de2d

Please sign in to comment.