1.0.7 • Published 3 years ago

eslint-config-al v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.

  1. To install, run:
npm i -D eslint-config-al
  1. 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'  
}
  1. 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"
  },
}
  1. To run the linter:
npm run lint
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago