1.8.4 • Published 4 months ago

eslint-config-polioan v1.8.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

eslint-config-polioan

version license

Shared ESlint config 'polioan'

Install

npm i eslint @typescript-eslint/parser eslint-config-polioan

Example .eslintrc.cjs

'use strict'

const path = require('node:path')

const { jsExtensions } = require('eslint-config-polioan/common/constants')

/** @type {import("eslint").Linter.Config} */
const config = {
  extends: [
    'polioan/configurations/comments',
    'polioan/configurations/general',
    'polioan/configurations/generalTypes',
    'polioan/configurations/jsx',
    'polioan/configurations/regex',
    'polioan/configurations/spellcheck',
    'polioan/configurations/cssModules',
    'polioan/configurations/react',
    'polioan/configurations/next',
  ],
  env: {
    browser: true,
    node: true,
    es2021: true,
  },
  settings: {},
  root: true,
  parser: '@typescript-eslint/parser',
  parserOptions: {
    ecmaVersion: 'latest',
    project: path.join(__dirname, 'tsconfig.json'),
    ecmaFeatures: {
      jsx: true,
    },
  },
  plugins: [],
  rules: {},
  overrides: [
    {
      files: ['*.cjs'],
      extends: ['polioan/configurations/commonJS'],
    },
    {
      files: jsExtensions,
      extends: ['polioan/configurations/javascriptOnly'],
    },
    {
      files: ['.eslintrc.cjs'],
      rules: {
        'spellcheck/spell-checker': ['off'],
      },
    },
  ],
}

module.exports = config

How to add configuration?

  • Install the necessary dependencies
  • Make sure that the dependencies are in the right place
  • If necessary - configure peerDependenciesMeta
  • Add configuration to src/configurations
  • Update the documentation in docs/src/plugins
  • If necessary - update the example in README.md
1.8.4

4 months ago

1.8.3

4 months ago

1.8.2

5 months ago

1.7.2

7 months ago

1.6.2

7 months ago

1.6.1

7 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.0

8 months ago

1.3.0

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.0

9 months ago