cybozu / eslint-config

ESLint rules for Cybozu
MIT License
97 stars 7 forks source link

feat: add support for ESLint Flat Config #779

Closed k1tikurisu closed 5 months ago

k1tikurisu commented 5 months ago

an example:

const config = require("@cybozu/eslint-config/flat/presets/react-typescript-prettier")

module.exports = [
  ...config,
  {
    rules: {
      // default
      // 'indent': ['warn', 2, { "SwitchCase": 1 }],
      indent: ["warn", 4, { SwitchCase: 0 }]
    }
  },
]