eslint-config-mattor
v1.2.1
Published
Mattor's opinionated ESLint config
Downloads
3
Readme
Mattor's opinionated ESLint config
Install scripts-linting
npm i babel-eslint eslint eslint-config-mattor @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks typescript --save-dev
.eslintrc
{
"extends": [
"mattor"
]
}
Install styles-linting
npm i stylelint stylelint-config-standard --save-dev
stylelint.config.js
const config = require("eslint-config-mattor/stylelint.config")
module.exports = config
package.json
"scripts": {
"lint": "npm run lint:scripts && npm run lint:styles",
"lint:scripts": "eslint . --report-unused-disable-directives --fix",
"lint:styles": "stylelint \"**/*.{css,scss}\" --fix",
},