-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
484 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# exitorconfig.org | ||
root = true | ||
|
||
[*.js,*.json] | ||
|
||
charset = utf-8 | ||
indent_size = 2 | ||
end_of_line = lf | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,9 @@ | ||
{ | ||
"name": "@amorino/eslint-config", | ||
"version": "1.0.0", | ||
"description": "Personal ESLint config for Next.JS using TypeScript", | ||
"main": "index.js", | ||
"keywords": [ | ||
"eslint", | ||
"config" | ||
], | ||
"author": "Erick Bazan <erick.bazan@me.com>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"eslint": ">=7", | ||
"typescript": ">=3.7" | ||
}, | ||
"devDependencies": { | ||
"eslint": "7.16.0", | ||
"typescript": "^3.9.7" | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.15.0", | ||
"@typescript-eslint/parser": "^4.15.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-react": "^7.22.0", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"prettier": "^2.2.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/amorino/eslint-config.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/amorino/eslint-config/issues" | ||
}, | ||
"homepage": "https://github.com/amorino/eslint-config#readme" | ||
} | ||
"name": "@amorino/eslint-config-project", | ||
"scripts": { | ||
"publish": "yarn workspaces foreach npm publish --access=public" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
|
||
env: { | ||
node: true, | ||
"jest/globals": true, | ||
"react-native/react-native": true, | ||
es2020: true, | ||
}, | ||
|
||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
project: "./tsconfig.json", | ||
}, | ||
|
||
ignorePatterns: ["/*.*"], | ||
|
||
plugins: ["@typescript-eslint", "react-native"], | ||
|
||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
"@react-native-community", | ||
"plugin:react-native/all", | ||
"plugin:prettier/recommended", | ||
"prettier/@typescript-eslint", | ||
], | ||
|
||
rules: { | ||
/** | ||
* General | ||
*/ | ||
"no-underscore-dangle": "off", | ||
/** | ||
* React Plugin | ||
* The following rules are made available via `eslint-plugin-react`. | ||
*/ | ||
"react/prop-types": "off", | ||
"react/display-name": "off", | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ | ||
extensions: [".ts", ".tsx"], | ||
}, | ||
], | ||
"react/jsx-props-no-spreading": [ | ||
"error", | ||
{ | ||
custom: "ignore", | ||
}, | ||
], | ||
"react/no-unescaped-entities": "off", | ||
/** | ||
* Prettier plugin | ||
* The following rules are made available via `eslint-plugin-prettier`. | ||
*/ | ||
"prettier/prettier": "error", | ||
|
||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"react-native/no-raw-text": [ | ||
2, | ||
{ | ||
skip: ["Animated.Text"], | ||
}, | ||
], | ||
}, | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
"import/resolver": { | ||
typescript: { | ||
alwaysTryTypes: true, | ||
}, | ||
node: { | ||
extensions: [".js", ".jsx", ".ts", ".tsx"], | ||
}, | ||
}, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["**/*.js?(x)"], | ||
rules: { | ||
"@typescript-eslint/no-var-requires": "off", | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "@amorino/eslint-config-native", | ||
"version": "1.0.1", | ||
"description": "Personal ESLint config for React Native using TypeScript", | ||
"main": "index.js", | ||
"keywords": [ | ||
"eslint", | ||
"react", | ||
"react native", | ||
"config", | ||
"typescript" | ||
], | ||
"author": "Erick Bazán <erick.bazan@me.com>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"eslint": ">=7", | ||
"typescript": ">=3.7" | ||
}, | ||
"devDependencies": { | ||
"eslint": "7.16.0", | ||
"typescript": "^3.9.7" | ||
}, | ||
"dependencies": { | ||
"@react-native-community/eslint-config": "^2.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.15.0", | ||
"@typescript-eslint/parser": "^4.15.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-react": "^7.22.0", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"eslint-plugin-react-native": "^3.10.0", | ||
"prettier": "^2.2.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/amorino/eslint-config.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/amorino/eslint-config/issues" | ||
}, | ||
"homepage": "https://github.com/amorino/eslint-config#readme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "@amorino/eslint-config-next", | ||
"version": "1.0.1", | ||
"description": "Personal ESLint config for Next.JS using TypeScript", | ||
"main": "index.js", | ||
"keywords": [ | ||
"eslint", | ||
"config", | ||
"react", | ||
"next.js", | ||
"typescript" | ||
], | ||
"author": "Erick Bazán <erick.bazan@me.com>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"eslint": ">=7", | ||
"typescript": ">=3.7" | ||
}, | ||
"devDependencies": { | ||
"eslint": "7.16.0", | ||
"typescript": "^3.9.7" | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.15.0", | ||
"@typescript-eslint/parser": "^4.15.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-react": "^7.22.0", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"prettier": "^2.2.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/amorino/eslint-config.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/amorino/eslint-config/issues" | ||
}, | ||
"homepage": "https://github.com/amorino/eslint-config#readme" | ||
} |
Oops, something went wrong.