Switch linting to ESLint and Prettier #191
@@ -1,4 +1,3 @@
|
|||||||
|
|
|||||||
pjax.js
|
pjax.js
|
||||||
node_modules/**
|
|
||||||
|
No need for this. In
I think it's the same for prettier. Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous) No need for this. In
https://eslint.org/docs/user-guide/configuring#eslintignore
you can read
> # /node_modules/* and /bower_components/* in the project root are ignored by default
I think it's the same for prettier.
Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous)
|
|||||||
pjax.min.js
|
pjax.min.js
|
||||||
*.json
|
*.json
|
||||||
|
|||||||
|
No need for this. In
I think it's the same for prettier. Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous) No need for this. In
https://eslint.org/docs/user-guide/configuring#eslintignore
you can read
> # /node_modules/* and /bower_components/* in the project root are ignored by default
I think it's the same for prettier.
Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous)
No need for this. In
I think it's the same for prettier. Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous) No need for this. In
https://eslint.org/docs/user-guide/configuring#eslintignore
you can read
> # /node_modules/* and /bower_components/* in the project root are ignored by default
I think it's the same for prettier.
Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous)
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
pjax.js
|
pjax.js
|
||||||
node_modules/**
|
|
||||||
pjax.min.js
|
pjax.min.js
|
||||||
*.json
|
*.json
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
"uglify-js": "^3.3.8"
|
"uglify-js": "^3.3.8"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint **/*.js",
|
"lint": "eslint .",
|
||||||
"standalone": "browserify index.js --standalone Pjax > pjax.js",
|
"standalone": "browserify index.js --standalone Pjax > pjax.js",
|
||||||
"build": "npm run standalone && uglifyjs pjax.js -o pjax.min.js",
|
"build": "npm run standalone && uglifyjs pjax.js -o pjax.min.js",
|
||||||
"build-debug": "browserify index.js --debug --standalone Pjax > pjax.js",
|
"build-debug": "browserify index.js --debug --standalone Pjax > pjax.js",
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.js": [
|
"*.js": [
|
||||||
"eslint --fix **/*.js",
|
"eslint --fix",
|
||||||
"prettier --write",
|
"prettier --write",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
|
|||||||
No need for this. In
https://eslint.org/docs/user-guide/configuring#eslintignore
you can read
I think it's the same for prettier.
Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous)
No need for this. In
https://eslint.org/docs/user-guide/configuring#eslintignore
you can read
I think it's the same for prettier.
Something I do sometimes is to symlink this *ignore to .gitignore (eg: that's what I do here https://github.com/MoOx/eslint-config-i-am-meticulous)