1.0.7 • Published 3 years ago
eslint-config-al v1.0.7
Al's ESLint Config
This is a config for React and TypeScript. It's based off of the Next.js config with some minor modifications.
The source code is available on GitHub here.
Note: dep dependencies are not installed automatically. To install the dependencies, you can copy them from this package's package.json
.
- To install, run:
npm i -D eslint-config-al
- In your
.eslintrc.js
file, add:
{
extends: 'eslint-config-al'
}
The file should look like this:
// .eslintrc.js
module.exports = {
root: true,
extends: 'eslint-config-al'
}
- In
package.json
, add a line to command for linting. The file should look something like this:
{
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint . --ext js,jsx,ts,tsx --max-warnings=0"
},
}
- To run the linter:
npm run lint