forked from skiff-org/skiff-ui
-
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
1 parent
1099c8f
commit adcc36f
Showing
571 changed files
with
12,758 additions
and
40,504 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,87 +1,9 @@ | ||
require("eslint-config-skiff-eslint/frontend"); | ||
module.exports = { | ||
extends: [ | ||
'airbnb-typescript', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:sonarjs/recommended', | ||
'plugin:react/recommended' | ||
], | ||
parser: '@typescript-eslint/parser', // Parse TypeScript | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
jsx: true // True for React | ||
}, | ||
/* disable or configure individual rules */ | ||
rules: { | ||
// max length at 110 characters, ignores comments | ||
'max-len': [ | ||
'warn', | ||
110, | ||
{ ignoreComments: true, ignoreTrailingComments: true } | ||
], | ||
|
||
// arrow functions | ||
// no arrow parens if one param | ||
'arrow-parens': ['error', 'as-needed'], | ||
// don't require consistent body position | ||
'implicit-arrow-linebreak': 'off', | ||
// prefer implicit return statement | ||
'arrow-body-style': ['error', 'as-needed'], | ||
|
||
// no trailing commas | ||
'@typescript-eslint/comma-dangle': ['error', 'never'], | ||
|
||
// need console logging | ||
'no-console': 'off', | ||
|
||
// unncessary for ES6/node | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'func-names': ['warn', 'as-needed'], | ||
'import/extensions': 'off', | ||
'import/no-cycle': 'warn', // supported by node, difficult to fix. | ||
// does not detect czi-prosemirror deps due to lerna | ||
'import/no-extraneous-dependencies': 'off', | ||
|
||
// make it hard to use ts-ignore | ||
'@typescript-eslint/ban-ts-comment': 'error', | ||
|
||
// we do a lot of valid param reassigns | ||
'no-param-reassign': 'off', | ||
|
||
// small things - we'll allow. | ||
'no-return-assign': 'off', | ||
'sonarjs/no-duplicate-string': 'off', // for jest describe() and it() | ||
'sonarjs/no-small-switch': 'warn', | ||
'sonarjs/no-duplicated-branches': 'warn', | ||
'@typescript-eslint/no-var-requires': 'warn', | ||
|
||
// allow any type | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
|
||
// allow inferred return types on functions | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
|
||
// to be more explicit | ||
'sonarjs/prefer-immediate-return': 'off', | ||
|
||
// allow props spreading | ||
'react/jsx-props-no-spreading': 'off', | ||
|
||
// TODO: turn these rules on - react | ||
'react/require-default-props': 'off', | ||
'react/default-props-match-prop-types': 'off', | ||
'react/prop-types': 'off', | ||
|
||
// TODO: turn these rules on - misc | ||
'sonarjs/cognitive-complexity': 'off', | ||
'sonarjs/no-identical-functions': 'warn', | ||
|
||
// TODO: turn these rules on - ts | ||
'@typescript-eslint/no-shadow': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
|
||
}, | ||
ignorePatterns: [ | ||
'.eslintrc.js' | ||
] | ||
}; | ||
|
||
extends: ["skiff-eslint/frontend"], | ||
parserOptions: { | ||
project: "tsconfig.json", | ||
jsx: true, | ||
}, | ||
ignorePatterns: [".eslintrc.js", "**/*.d.ts", "dist", "build.js"], | ||
}; |
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ dist | |
.rts2* | ||
yarn-error.log | ||
.DS_STORE | ||
dist/ | ||
.eslintcache |
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,9 @@ | ||
node_modules/ | ||
.env | ||
dist | ||
.rts2* | ||
yarn-error.log | ||
.DS_STORE | ||
dist/ | ||
.eslintcache | ||
.eslintrc.js |
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,10 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"jsxSingleQuote": true, | ||
"trailingComma": "none", | ||
"semi": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
|
||
# Contributor Code of Conduct | ||
|
||
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. | ||
|
||
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery | ||
* Personal attacks | ||
* Trolling or insulting/derogatory comments | ||
* Public or private harassment | ||
* Publishing other's private information, such as physical or electronic addresses, without explicit permission | ||
* Other unethical or unprofessional conduct | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team. | ||
|
||
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.2.0, available at https://www.contributor-covenant.org/version/1/2/0/code-of-conduct.html |
Oops, something went wrong.