Skip to content

Commit

Permalink
Convert various config files to ts and json
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-mosher committed Jul 31, 2024
1 parent 3f15c41 commit acd05a3
Show file tree
Hide file tree
Showing 9 changed files with 270 additions and 96 deletions.
84 changes: 0 additions & 84 deletions .eslintrc.cjs

This file was deleted.

109 changes: 109 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"root": true,
"env": {
"browser": true,
"es2020": true
},
"extends": [
"airbnb",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:tailwindcss/recommended"
],
"ignorePatterns": [
".eslintrc.cjs",
"dist",
"tailwind.config.ts"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"react": {
"version": "18.2"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"plugins": [
"@typescript-eslint",
"react-refresh",
"tailwindcss"
],
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}
],
"import/extensions": "off",
"import/order": [
"warn",
{
"groups": [
"external",
"builtin",
"internal",
"sibling",
"parent",
"index"
],
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": false
}
}
],
"jsx-a11y/label-has-associated-control": [
"warn"
],
"jsx-quotes": [
"error",
"prefer-single"
],
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".jsx",
".tsx"
]
}
],
"react/prop-types": [
"off"
],
"react-refresh/only-export-components": [
"warn",
{
"allowConstantExport": true
}
],
"semi": [
"warn",
"never"
]
}
}
Loading

0 comments on commit acd05a3

Please sign in to comment.