Skip to content

Commit

Permalink
ci(eslint): remove @inabagumi/eslint-config-react (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts authored Apr 13, 2021
1 parent 97f2aea commit 1e5b5ac
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 19 deletions.
81 changes: 81 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/**
* @type {import('eslint/lib/shared/types').ConfigData}
*/
module.exports = {
env: {
browser: true,
commonjs: true,
es2020: true,
node: true
},
extends: [
'eslint:recommended',
// 'plugin:import/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended'
],
overrides: [
{
env: {
commonjs: false,
es2020: false
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
// 'plugin:import/typescript'
],
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
warnOnUnsupportedTypeScriptVersion: false
}
},
{
extends: [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:import/react'
],
files: ['*.jsx', '*.tsx'],
rules: {
// 'react/jsx-sort-props': 'error'
},
settings: {
react: {
version: 'detect'
}
}
},
{
files: ['*.tsx'],
rules: {
'react/prop-types': 'off'
}
}
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
root: true,
rules: {
// 'import/order': [
// 'error',
// {
// alphabetize: {
// order: 'asc'
// },
// groups: [
// ['builtin', 'external'],
// 'internal',
// 'parent',
// 'sibling',
// 'index'
// ]
// }
// ],
// 'sort-keys': 'error'
}
}
19 changes: 7 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,27 @@
},
"description": "Chat Styles is a generator of style sheet for the YouTube Live Chat.",
"devDependencies": {
"@inabagumi/eslint-config-react": "^9.0.1",
"@inabagumi/prettier-config": "^1.1.2",
"@types/classnames": "^2.2.11",
"@types/jest": "^26.0.22",
"@types/node": "^12.20.7",
"@types/react": "^17.0.3",
"@types/react-color": "^3.0.4",
"@types/react-helmet": "^6.1.1",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"next-pwa": "^5.2.9",
"prettier": "^2.2.1",
"typescript": "^4.2.4"
},
"eslintConfig": {
"extends": [
"@inabagumi/react"
],
"parserOptions": {
"project": "tsconfig.json"
},
"root": true
},
"homepage": "https://chat-styles.app/",
"license": "MIT",
"name": "@ykzts/chat-styles",
"prettier": "@inabagumi/prettier-config",
"private": true,
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
endOfLine: 'lf',
semi: false,
singleQuote: true,
trailingComma: 'none'
}
Loading

1 comment on commit 1e5b5ac

@vercel
Copy link

@vercel vercel bot commented on 1e5b5ac Apr 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.