Skip to content

Commit

Permalink
Huge update (margox#728)
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
MaximusFT authored Mar 10, 2020
1 parent 1ef8459 commit 02bfdd7
Show file tree
Hide file tree
Showing 84 changed files with 16,318 additions and 10,830 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
dist
example
playground
# playground
50 changes: 0 additions & 50 deletions .eslintrc

This file was deleted.

137 changes: 100 additions & 37 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,104 @@
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
ecmaVersion: 2018,
sourceType: 'module',
},
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
globals: {
_: false,
},
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['prettier', 'react', 'react-hooks', 'jsx-a11y'],
rules: {
'arrow-parens': ['error', 'always'],
'class-methods-use-this': 0,
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'only-multiline',
},
],
"rules": {
"no-console": 0,
"react/jsx-uses-react": [1],
"react/jsx-uses-vars": [2],
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
'eol-last': ['error', 'always'],
'function-paren-newline': 0,
'func-names': ['error', 'as-needed'],
'import/extensions': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/no-named-as-default': 0,
'import/no-unresolved': 0,
'import/no-webpack-loader-syntax': 0,
indent: ['error', 2, { ArrayExpression: 'first' }],
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/label-has-for': 0,
'jsx-a11y/mouse-events-have-key-events': 0,
'jsx-a11y/no-autofocus': 0,
'linebreak-style': 0,
'max-len': 0,
'new-cap': [
'error',
{ capIsNewExceptions: ['List', 'Map', 'Set', 'Record', 'OrderedMap'] },
],
'no-console': 0,
'no-else-return': 0,
'no-mixed-operators': 0,
'no-nested-ternary': 0,
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-restricted-globals': 0,
'no-underscore-dangle': [
'error',
{ allow: ['_isMounted', '__html', '__'] },
],
'prefer-destructuring': 0,
quotes: [2, 'single', { avoidEscape: true }],
'react/button-has-type': 0,
'react/destructuring-assignment': [0, 'always'],
'react/forbid-prop-types': 0,
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
'react/jsx-props-no-spreading': 0,
'react/jsx-uses-react': [1],
'react/jsx-uses-vars': [2],
'react/no-unused-prop-types': 0,
'react/prefer-stateless-function': 'warn',
'react/prop-types': 'error',
'react/require-default-props': 0,
'react/sort-comp': [
2,
{
order: [
'constructor',
'state',
'initialState',
'static-methods',
'lifecycle',
'fetching',
'everything-else',
'rendering',
],
"semi": [
"error",
"never"
]
}
};
groups: {
fetching: ['fetchDataIfNeded', 'fetch.+IfNeeded'],
rendering: [
'renderLoader',
'renderError',
'renderNoData',
'/^render.+$/',
'render',
],
},
},
],
'react/state-in-constructor': 0,
},
};
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
package-lock.json
yarn.lock
package.json
9 changes: 7 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"trailingComma": "all",
"arrowParens": "always"
}
"arrowParens": "always",
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files.exclude": {
"**/.git": true,
"**/node_modules": true
},
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"search.exclude": {
"**/.vscode": true,
"**/node_modules": true
},
"editor.tabSize": 2,
"eslint.enable": true
}
17 changes: 0 additions & 17 deletions build/scss-output.js

This file was deleted.

65 changes: 0 additions & 65 deletions build/webpack.base.js

This file was deleted.

29 changes: 0 additions & 29 deletions build/webpack.development.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.css

Large diffs are not rendered by default.

Loading

0 comments on commit 02bfdd7

Please sign in to comment.