mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-14 13:05:22 +02:00
feat: eslint config (airbnb), adds cache option for lint npm script
This commit is contained in:
8
.eslintrc
Normal file
8
.eslintrc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"extends": "airbnb",
|
||||||
|
"plugins": [
|
||||||
|
"react",
|
||||||
|
"jsx-a11y",
|
||||||
|
"import"
|
||||||
|
]
|
||||||
|
}
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,6 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
npm-debug.log
|
||||||
|
|
||||||
public
|
public
|
||||||
|
|
||||||
.gatsby-context.js
|
.gatsby-context.js
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
"clean": "npm run clean:public",
|
"clean": "npm run clean:public",
|
||||||
"copy:files": "find ./pages -maxdepth 1 -type f -regextype posix-extended -regex '.+\\.(pdf|txt|png|jpg|jpeg|gif)$' -exec cp -v {} ./public ';'",
|
"copy:files": "find ./pages -maxdepth 1 -type f -regextype posix-extended -regex '.+\\.(pdf|txt|png|jpg|jpeg|gif)$' -exec cp -v {} ./public ';'",
|
||||||
"copy": "npm run copy:files",
|
"copy": "npm run copy:files",
|
||||||
"lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .",
|
"lint": "./node_modules/.bin/eslint --cache --ext .js,.jsx --ignore-pattern public .",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"deploy": "gatsby build --prefix-links && gh-pages -d public"
|
"deploy": "gatsby build --prefix-links && gh-pages -d public"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user