Shared @eslint configs for web development projects of @fastcms.
This shared ESLint config is extended from both airbnb and prettier styles, it also can be used for monorepo project.
Use npx to install peerdeps automatically or install peerDependencies and optionalDependencies with npm/yarn manually.
# Install using npm
$ npm info "@fastcms/eslint-config" peerDependencies optionalDependencies
$ npx install-peerdeps --dev @fastcms/eslint-config
# Install using yarn
$ yarn add --dev @fastcms/eslint-config
$ yarn add --dev @babel/core eslint prettier typescript babel-plugin-module-resolver
After installation, add following contents to your .eslintrc
or the eslintConfig
entry of package.json
file.
{
"extends": ["@fastcms"],
"settings": {
"polyfills": ["fetch", "Promise", "URL"]
}
}
Added markdown
and testing
presets automatically.
{
"extends": ["@fastcms/eslint-config/base"]
}
{
"extends": ["@fastcms/eslint-config/react"]
}
{
"extends": ["@fastcms/eslint-config/typescript"]
}
{
"extends": ["@fastcms/eslint-config/typescript-react"]
}
{
"extends": ["@fastcms/eslint-config/markdown"]
}
{
"extends": ["@fastcms/eslint-config/testing"]
}
- bug: mdx with external react components parse error
- feat: fenced codeblock in markdown should support
ts
andtsx
- feat: add more typescript rules (refer to eslint-config-airbnb-typescript)
- test: add more tests for ESLint rules
- ci: integrate repo with GitHub Actions
The scripts and documentation in this project are released under the MIT License