mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Turn off eslint rules inconsistent with prettier settings and run prettier through eslint (#136)
This commit is contained in:
parent
3afc4f4635
commit
4d5ff56b99
15
.eslintrc
Normal file
15
.eslintrc
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"extends": [
|
||||
"eslint-config-developit",
|
||||
"prettier",
|
||||
"plugin:prettier/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
"prettier"
|
||||
],
|
||||
"rules": {
|
||||
"brace-style": "off",
|
||||
"comma-dangle": ["warn", "always-multiline"],
|
||||
"indent": "off"
|
||||
}
|
||||
}
|
||||
@ -1,9 +1,6 @@
|
||||
module.exports = {
|
||||
linters: {
|
||||
'{src,test}/**/*.js': [
|
||||
'prettier --use-tabs --single-quote --trailing-comma=all --write',
|
||||
'git add',
|
||||
],
|
||||
'{src,test}/**/*.js': ['eslint --fix', 'git add'],
|
||||
'*.md': ['prettier --write', 'git add'],
|
||||
},
|
||||
ignore: ['**/dist/**/*.js'],
|
||||
|
||||
15
package.json
15
package.json
@ -17,17 +17,16 @@
|
||||
"release": "npm run -s prepare && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
|
||||
},
|
||||
"repository": "developit/microbundle",
|
||||
"eslintConfig": {
|
||||
"extends": "eslint-config-developit",
|
||||
"rules": {
|
||||
"comma-dangle": ["warn", "always-multiline"]
|
||||
}
|
||||
},
|
||||
"babel": {
|
||||
"presets": [
|
||||
"env"
|
||||
]
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"useTabs": true
|
||||
},
|
||||
"keywords": [
|
||||
"bundle",
|
||||
"rollup",
|
||||
@ -76,11 +75,13 @@
|
||||
"directory-tree": "^2.1.0",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-config-developit": "^1.1.1",
|
||||
"eslint-config-prettier": "^2.9.0",
|
||||
"eslint-plugin-prettier": "^2.6.0",
|
||||
"fs-extra": "^5.0.0",
|
||||
"husky": "^0.14.3",
|
||||
"jest": "^22.4.3",
|
||||
"lint-staged": "^7.1.0",
|
||||
"prettier": "^1.12.1",
|
||||
"prettier": "^1.13.0",
|
||||
"rimraf": "^2.6.2",
|
||||
"shell-quote": "^1.6.1",
|
||||
"strip-ansi": "^4.0.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user