Skip to content

Commit

Permalink
Move .eslintrc and .jscsrc in package.json to simplify directory layout
Browse files Browse the repository at this point in the history
- .eslintrc -> package.json/eslintConfig ([ref](http://eslint.org/docs/user-guide/configuring#configuration-file-formats))
- .jscsrc -> package.json/jscsConfig ([ref](http://jscs.info/overview#-config-c))
- .babelrc -> package.json/babel ([ref](https://babeljs.io/docs/usage/babelrc/#use-via-package-json))
  • Loading branch information
frenzzy committed Mar 12, 2016
1 parent 0de4958 commit bb178d3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

6 changes: 0 additions & 6 deletions .jscsrc

This file was deleted.

21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,27 @@
"stage-0"
]
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": "airbnb",
"globals": {
"__DEV__": true
},
"env": {
"browser": true,
"jest": true
},
"rules": {
"no-confusing-arrow": 0,
"react/jsx-quotes": 0,
"jsx-quotes": [2, "prefer-double"]
}
},
"jscsConfig": {
"preset": "airbnb",
"excludeFiles": ["build/**", "node_modules/**"],
"disallowSpacesInsideTemplateStringPlaceholders": null
},
"jest": {
"rootDir": "./src",
"testPathDirs": [
Expand Down

0 comments on commit bb178d3

Please sign in to comment.