0.4.7 • Published 12 months ago
@nozomiishii/eslint-config v0.4.7
@nozomiishii/eslint-config
Nozomi's Recommended eslint Config.
Gist
npx -y @nozomiishii/eslint-config@latest
Manual
pnpm add -D eslint typescript eslint-define-config @nozomiishii/eslint-config && touch .eslintrc.cjs
scriptの設定
pnpm pkg set scripts.eslint="eslint . --max-warnings=0 --ignore-path .gitignore" \
pnpm pkg set scripts.lint="pnpm eslint" \
pnpm pkg set scripts.lint:fix="pnpm eslint --fix"
package.json
{
"scripts": {
"eslint": "eslint . --max-warnings=0 --ignore-path .gitignore",
"lint": "pnpm eslint",
"lint:fix": "pnpm eslint --fix"
}
}
.eslintrc.cjs
// @ts-check
const { defineConfig } = require('eslint-define-config');
module.exports = defineConfig({
root: true,
ignorePatterns: ['.eslintrc.cjs', '*.config.*'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
tsconfigRootDir: __dirname,
project: true,
sourceType: 'module',
},
extends: '@nozomiishii',
});
その他便利そうなカスタムルールたち(プロジェクトによって入れたい)
特定のimportを禁止
0.4.7
12 months ago
0.4.6
1 year ago
0.4.5
1 year ago
0.4.4
1 year ago
0.4.3
1 year ago
0.4.1
2 years ago
0.4.2
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.1.2
2 years ago
0.2.0
2 years ago
0.1.7
2 years ago
0.2.3
2 years ago
0.1.4
2 years ago
0.4.0
2 years ago
0.1.3
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago