Skip to content

Commit

Permalink
major update
Browse files Browse the repository at this point in the history
  • Loading branch information
jgdevelopment committed Jun 1, 2023
1 parent 1099c8f commit adcc36f
Show file tree
Hide file tree
Showing 571 changed files with 12,758 additions and 40,504 deletions.
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

51 changes: 0 additions & 51 deletions .eslintignore

This file was deleted.

94 changes: 8 additions & 86 deletions .eslintrc.js
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"],
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ dist
.rts2*
yarn-error.log
.DS_STORE
dist/
.eslintcache
9 changes: 9 additions & 0 deletions .npmignore
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
10 changes: 10 additions & 0 deletions .prettierrc
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
}
40 changes: 0 additions & 40 deletions .storybook/main.js

This file was deleted.

1 change: 0 additions & 1 deletion .storybook/manager-head.html

This file was deleted.

6 changes: 0 additions & 6 deletions .storybook/manager.js

This file was deleted.

12 changes: 0 additions & 12 deletions .storybook/preview.js

This file was deleted.

8 changes: 0 additions & 8 deletions .storybook/skiffTheme.js

This file was deleted.

45 changes: 0 additions & 45 deletions .yarnclean

This file was deleted.

23 changes: 23 additions & 0 deletions CODE_OF_CONDUCT.md
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
Loading

0 comments on commit adcc36f

Please sign in to comment.