Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 968 Bytes

README.md

File metadata and controls

58 lines (48 loc) · 968 Bytes

eslint-config-bcrikko

私が個人的に使っているESLint/Stylisticのルールプリセット。

Installation

$ npm i -D git+https://github.com/BcRikko/eslint-config-bcrikko

Usage

// eslint.config.js
import base from '@bcrikko/eslint-config-bcrikko'
import react from '@bcrikko/eslint-config-bcrikko/react'

/**
 * @type {import("eslint").Linter.FlatConfig[]}
 */
const config = [
  ...base,
  ...react,
  {
    files: [],
    ignores: [],
    settings: {
      react: {
        version: 'detect',
      },
    },
    rules: {
      // Overwrite rule
      '@typescript-eslint/no-var-requires': 'off',
    }
  }
]

Development

./
 |- configs
 |   |- index.js  // Base rules
 |   |- react.js  // for React
 |- rules         // eslint rules
 |   |- javascript.js
 |   |- typescript.js
 |   |- react.js
 |   |- plugins.js
 |- styles        // stylistic rules
     |- jsStyle.js
     |- tsStyle.js
     |- reactStyle.js