3.0.1 • Published 1 year ago

@sn0wye/eslint-config v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Sn0wye ESLint config

Whats included?

  • React plugin;
  • React Hooks plugin;
  • JSX a11y plugin;

Setup

  1. Install the dependencies
pnpm i eslint @sn0wye/eslint-config -D
  1. Create a .eslintrc.cjs or file extending the config:
const path = require('path');

/** @type {import("eslint").Linter.Config} */
module.exports = {
  extends: ['@sn0wye/eslint-config/react'],
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: path.join(__dirname, 'tsconfig.json')
  }
};
  1. Add the linting scripts
// package.json
"scripts": {
  // ...,
  "lint": "eslint src --ext ts,tsx",
  "lint:fix": "eslint src --ext ts,tsx --fix",
}
3.0.1

1 year ago

3.0.0

2 years ago

2.0.0

2 years ago

1.8.1

3 years ago

1.7.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago