Skip to content

Commit

Permalink
style(eslintrc, eslintignore): add lint and ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkaroid committed Apr 21, 2023
1 parent d611b67 commit 13dd57d
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/node_modules/*
**/out/*
**/.next/*
100 changes: 100 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"plugins": [
"testing-library",
"unused-imports"
],
"extends": [
"next/core-web-vitals"
],
"rules": {
"no-unused-vars": "off",
"react/require-default-props": 0,
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/explicit-module-boundary-types": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".ts",
".tsx"
]
}
],
"react/jsx-props-no-spreading": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/react-in-jsx-scope": 0,
"react/display-name": 0,
"react/prop-types": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"no-use-before-define": 0,
"@typescript-eslint/no-use-before-define": 0,
"import/extensions": [
"error",
"never",
{
"svg": "always"
}
],
"react/no-unescaped-entities": 0,
"jsx-a11y/label-has-associated-control": 0,
"react/no-unused-prop-types": 0,
"no-underscore-dangle": 0,
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"indent": [
"error",
2
],
"@typescript-eslint/no-unused-vars": [
0,
{
"argsIgnorePattern": "^_"
}
],
"no-console": [
2,
{
"allow": [
"warn",
"error"
]
}
],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal"
],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": [
"react"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}

0 comments on commit 13dd57d

Please sign in to comment.