Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Fixes issue with linting
Browse files Browse the repository at this point in the history
  • Loading branch information
schalkventer committed May 14, 2019
1 parent b6e7e37 commit d320853
Show file tree
Hide file tree
Showing 10 changed files with 457 additions and 706 deletions.
53 changes: 53 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
'plugins': [
'react',
'react-app',
'prettier',
'jest',
'compat',
'extra-rules',
],
"settings": {
"polyfills": [
"fetch",
"promises"
]
},
extends: [
'airbnb',
'prettier',
'plugin:prettier/recommended',
],
"rules": {
"react/prop-types": "off",
"linebreak-style": "off",
},
'env': {
'jest/globals': true,
browser: true,
node: true,
},
'rules': {
'prettier/prettier': ['error'],
'linebreak-style': 'off',
'react/prop-types': 'off',
'jsx-a11y/href-no-hash': 'off',
'react/jsx-one-expression-per-line': 'off' // Conflicts with Prettier
},
settings: {
react: {
version: 'detect',
},
},
}
6 changes: 6 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/*.mdx
**/*.jpg
**/*.jpeg
**/*.png
**/*.gif
**/*.json
5 changes: 5 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["stylelint-config-recommended", "stylelint-config-styled-components"],
"processors": ["stylelint-processor-styled-components"],
"plugins": ["stylelint-no-unsupported-browser-features"],
}
129 changes: 18 additions & 111 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"app-root-dir": "^1.0.2",
"autoprefixer": "^7.1.6",
"babel-core": "^6.26.0",
"babel-eslint": "^9.0.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^7.1.2",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.0",
Expand All @@ -33,14 +33,17 @@
"connect": "^3.6.6",
"css-loader": "^0.28.7",
"escape-html": "^1.0.3",
"eslint": "^4.9.0",
"eslint-config-airbnb": "^15.1.0",
"eslint-plugin-compat": "^1.0.4",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.2.0",
"eslint-plugin-compat": "^3.1.1",
"eslint-plugin-extra-rules": "^0.0.0-development",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsdoc": "^3.9.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-require-jsdoc": "^1.0.4",
"eslint-plugin-jest": "^22.5.1",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.11.0",
"eslint-plugin-react-app": "^5.0.1",
"extract-text-webpack-plugin": "^3.0.2",
"front-matter": "^2.3.0",
"frontmatter": "0.0.3",
Expand All @@ -60,15 +63,20 @@
"postcss-loader": "^2.1.6",
"postcss-normalize": "^4.0.0",
"preact-render-to-string": "^3.8.2",
"prettier": "^1.17.1",
"prop-types": "^15.6.1",
"sass-loader": "^6.0.6",
"serve-static": "^1.13.2",
"style-loader": "^0.18.2",
"stylelint": "^8.1.1",
"stylelint": "^10.0.1",
"stylelint-config-css-modules": "^1.1.0",
"stylelint-config-recommended": "^2.2.0",
"stylelint-config-standard": "^17.0.0",
"stylelint-no-unsupported-browser-features": "^1.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-no-unsupported-browser-features": "^3.0.2",
"stylelint-processor-styled-components": "^1.7.0",
"stylelint-scss": "^2.1.0",
"typescript": "^3.4.5",
"webpack": "^3.8.1",
"webpack-clean-plugin": "^0.2.3",
"webpack-cli": "^3.2.3",
Expand All @@ -82,107 +90,6 @@
"explorer >= 10",
"edge > 0"
],
"eslintConfig": {
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"plugins": [
"require-jsdoc",
"jsdoc",
"compat"
],
"settings": {
"polyfills": [
"fetch",
"promises"
]
},
"extends": "airbnb",
"rules": {
"require-jsdoc": 0,
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 1,
"jsdoc/newline-after-description": 1,
"jsdoc/require-description-complete-sentence": 0,
"jsdoc/require-example": 0,
"jsdoc/require-hyphen-before-param-description": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-description": 1,
"jsdoc/require-returns-description": 1,
"jsdoc/require-returns-type": 1,
"compat/compat": 1,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"jsx-a11y/href-no-hash": 0,
"linebreak-style": 0,
"arrow-body-style": 0,
"import/prefer-default-export": 0,
"react/react-in-jsx-scope": 0,
"react/no-unknown-property": [
2,
{
"ignore": [
"allowfullscreen"
]
}
],
"no-plusplus": 0,
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "h"
}
],
"max-len": 0
}
},
"stylelint": {
"extends": [
"stylelint-config-standard",
"stylelint-config-css-modules"
],
"plugins": [
"stylelint-scss",
"stylelint-no-unsupported-browser-features"
],
"rules": {
"plugin/no-unsupported-browser-features": [
true,
{
"severity": "warning"
}
],
"at-rule-empty-line-before": [
"never",
{
"ignoreAtRules": [
"media",
"import",
"if",
"for"
]
}
],
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"import-normalize",
"if",
"return",
"function",
"mixin",
"include"
]
}
]
}
},
"babel": {
"presets": [
"env",
Expand Down
5 changes: 5 additions & 0 deletions packages/webapp/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"react-app"
]
}
53 changes: 53 additions & 0 deletions packages/webapp/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
'plugins': [
'react',
'react-app',
'prettier',
'jest',
'compat',
'extra-rules',
],
"settings": {
"polyfills": [
"fetch",
"promises"
]
},
extends: [
'airbnb',
'prettier',
'plugin:prettier/recommended',
],
"rules": {
"react/prop-types": "off",
"linebreak-style": "off",
},
'env': {
'jest/globals': true,
browser: true,
node: true,
},
'rules': {
'prettier/prettier': ['error'],
'linebreak-style': 'off',
'react/prop-types': 'off',
'jsx-a11y/href-no-hash': 'off',
'react/jsx-one-expression-per-line': 'off' // Conflicts with Prettier
},
settings: {
react: {
version: 'detect',
},
},
}
6 changes: 6 additions & 0 deletions packages/webapp/.stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/*.mdx
**/*.jpg
**/*.jpeg
**/*.png
**/*.gif
**/*.json
5 changes: 5 additions & 0 deletions packages/webapp/.stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": ["stylelint-config-recommended", "stylelint-config-styled-components"],
"processors": ["stylelint-processor-styled-components"],
"plugins": ["stylelint-no-unsupported-browser-features"],
}
6 changes: 1 addition & 5 deletions packages/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@
"d3plus": "2.0.0-alpha.18",
"dotenv": "6.0.0",
"dotenv-expand": "4.2.0",
"eslint": "5.12.0",
"eslint-config-react-app": "^3.0.7",
"eslint-loader": "2.1.1",
"eslint-plugin-flowtype": "2.50.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-react": "7.12.4",
"faker": "^4.1.0",
"file-loader": "2.0.0",
"fork-ts-checker-webpack-plugin-alt": "0.4.14",
Expand Down Expand Up @@ -88,8 +84,8 @@
"@types/storybook-readme": "^5.0.1",
"@types/storybook__addon-a11y": "^5.0.0",
"@types/storybook__react": "^4.0.1",
"storybook-readme": "^5.0.1",
"babel-loader": "^8.0.5",
"storybook-readme": "^5.0.1",
"webpack": "^4.28.4"
},
"babel": {
Expand Down
Loading

0 comments on commit d320853

Please sign in to comment.