@tyankatsu0105/eslint-plugin
ESLint rules for TypeScript with TypeScript.
Usage
npm i -D eslint @tyankatsu0105/eslint-plugin
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
},
plugins: ["@tyankatsu0105"],
rules: {
"@tyankatsu0105/prefer-function-component-type": [
"error",
{ prefer: "React.FC" },
],
},
};
Rules
Configs
If you want to know about how to use scoped ESLint plugin, see: https://github.com/eslint/eslint/issues/9903
development
Branches
- master => Release branch
- develop => Development branch (default)
- topic branches => From develop branch
sandbox
If you want to check eslint error, make files in the sandbox
dir.
# make files
npm run gen:sandbox
# run eslint for sandbox dir
npm run sandbox
Inspired by these
- https://github.com/future-architect/eslint-plugin-vue-scoped-css
- https://github.com/typescript-eslint/typescript-eslint
LICENSE (MIT)
See LICENSE