Skip to content

Commit

Permalink
chore: updated linting to use newrelic-created plugin
Browse files Browse the repository at this point in the history
zstix committed Apr 21, 2020

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 878b75c commit 210e49f
Showing 3 changed files with 146 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -3,8 +3,11 @@ module.exports = {
browser: true,
es6: true,
},
// https://eslint.org/docs/rules
extends: ['eslint:recommended', 'plugin:react/recommended'],
// https://github.com/newrelic/eslint-plugin-newrelic
extends: [
'plugin:@newrelic/eslint-plugin-newrelic/react',
'plugin:@newrelic/eslint-plugin-newrelic/prettier',
],
// https://github.com/yannickcr/eslint-plugin-react#configuration
plugins: ['react'],
settings: {
137 changes: 137 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -19,6 +19,8 @@
"react-helmet": "^6.0.0"
},
"devDependencies": {
"@newrelic/eslint-plugin-newrelic": "^0.3.0",
"eslint": "^6.8.0",
"husky": "^4.2.5",
"prettier": "2.0.4"
},
@@ -33,7 +35,8 @@
"start": "npm run develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"lint": "eslint src/"
"lint": "eslint src/",
"lint:fix": "npm run lint -- --fix"
},
"husky": {
"hooks": {

0 comments on commit 210e49f

Please sign in to comment.