Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 49 additions & 42 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,58 +1,65 @@
const path = require('path');
const path = require("path");

module.exports = {
parser: 'babel-eslint',
extends: ['standard', 'standard-preact', 'airbnb-base'],
parser: "babel-eslint",
extends: ["standard", "standard-preact", "airbnb-base"],
env: {
browser: true,
jest: true,
},
rules: {
'no-unused-expressions': 0,
'prefer-template': 0,
'no-confusing-arrow': 0,
'import/no-cycle': 0, // maybe revert this one (config-experiment, panel-children)
'no-await-in-loop': 0,
'promise/param-names': 0,
'class-methods-use-this': 0,
'func-names': 0,
"no-unused-expressions": 0,
"prefer-template": 0,
"no-confusing-arrow": 0,
"import/no-cycle": 0, // maybe revert this one (config-experiment, panel-children)
"no-await-in-loop": 0,
"promise/param-names": 0,
"class-methods-use-this": 0,
"func-names": 0,
"global-require": 0,
'no-new': 0,
'no-multi-assign': 0,
'space-before-function-paren': 0,
'function-paren-newline': 0,
'no-param-reassign': 0,
'no-return-assign': [2, 'except-parens'],
'no-use-before-define': 0,
'consistent-return': 0,
'no-prototype-builtins': 0,
'arrow-parens': [2, 'as-needed'],
'no-console': [2, { allow: ['warn', 'error'] }],
'prefer-rest-params': 0,
'nonblock-statement-body-position': 0,
'no-underscore-dangle': 0,
'react/react-in-jsx-scope': 0,
'comma-dangle': [
'error',
"no-new": 0,
"no-multi-assign": 0,
"space-before-function-paren": 0,
"function-paren-newline": 0,
"no-param-reassign": 0,
"no-return-assign": [2, "except-parens"],
"no-use-before-define": 0,
"consistent-return": 0,
"no-prototype-builtins": 0,
"arrow-parens": [2, "as-needed"],
"no-console": [2, { allow: ["warn", "error"] }],
"prefer-rest-params": 0,
"nonblock-statement-body-position": 0,
"no-underscore-dangle": 0,
"react/react-in-jsx-scope": 0,
"comma-dangle": [
"error",
{
arrays: 'only-multiline',
objects: 'only-multiline',
imports: 'only-multiline',
exports: 'only-multiline',
functions: 'ignore',
arrays: "only-multiline",
objects: "only-multiline",
imports: "only-multiline",
exports: "only-multiline",
functions: "ignore",
},
],
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'object-curly-newline': 0,
'implicit-arrow-linebreak': 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"object-curly-newline": 0,
"implicit-arrow-linebreak": 0,
curly: 0,
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
},
"settings": {
settings: {
"import/resolver": {
webpack: {
config: 'webpack.config.js'
}
}
}
config: "webpack.config.js",
},
},
},
};
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# asserts everything is text
* text eol=lf

# treats lock files as binaries to prevent merge headache
package-lock.json -diff
yarn.lock -diff

# treats assets as binaries
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
Loading