2.0.3 • Published 2 years ago
@edgeandnode/eslint-config v2.0.3
@edgeandnode/eslint-config
Installation
Install the package
pnpm add --save-dev @edgeandnode/eslint-config
Use the preset in your .eslintrc.js file.
// .eslintrc.js
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["@edgeandnode", "@edgeandnode/eslint-config/next"],
plugins: ["testing-library"],
rules: {
"testing-library/no-unnecessary-act": ["error", { isStrict: true }],
},
overrides: [
{
files: ["*.ts", "*.tsx"],
parserOptions: {
project: require.resolve("./tsconfig.json"),
},
},
],
};
Presets
@edgeandnode/eslint-config — base profile built with eslint-plugin-jsx-a11y, eslint-plugin-react, eslint-plugin-react-hooks, eslint-plugin-simple-import-sort, eslint-plugin-sonarjs, and eslint-plugin-simple-import-sort
@edgeandnode/eslint-config/next — profile for Next.js built with @next/eslint-config-next
Development
- Mark changes from "default" rules present in common presets with
@changed
. - Describe the background for a rule or it's disabling with a comment marked
with
@motivation
. - Use rules that affect semantics — detect bugs and "no morning coffee" mistakes.
- Avoid obtrusive code-style rules.
2.0.3
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
2.0.1-develop.1
2 years ago
2.0.1-develop.0
2 years ago
1.3.5
2 years ago
1.3.4
2 years ago
1.3.3
2 years ago
1.3.1
2 years ago
1.2.0
2 years ago
1.3.0
2 years ago
1.1.0
3 years ago
1.0.2
3 years ago
1.0.2-rc.0
3 years ago
1.0.2-rc.1
3 years ago
1.0.1-rc.0
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.0-alpha.2
3 years ago
1.0.0-alpha.1
3 years ago
1.0.0-alpha.0
3 years ago