Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADAPT-1771: Linting Configuration #821

Merged
merged 3 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
21 changes: 7 additions & 14 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ checks:
config:
threshold: 10
method-lines:
config:
threshold: 40
enabled: false
file-lines:
enabled: false
plugins:
# https://docs.codeclimate.com/docs/eslint
# ES Linting requires an .eslintrc file to tweak checks.
Expand All @@ -19,9 +20,9 @@ plugins:
# Disable inline html check because homepage.md needs it.
MD033:
enabled: false
# We shouldn't actually have css in this repo.
# Only css in src should be linted.
csslint:
enabled: false
enabled: true
# We don't lint our coffee. Eew.
coffeelint:
enabled: false
Expand All @@ -44,14 +45,7 @@ plugins:
enabled: false
# https://docs.codeclimate.com/docs/duplication
duplication:
enabled: true
# exclude_paths:
# - examples/
config:
languages:
javascript:
mass_threshold: 50
# count_threshold: 3
enabled: false
fixme:
enabled: true
config:
Expand All @@ -67,9 +61,8 @@ exclude_patterns:
- "vendor"
- "vendors"
- "node_modules"
- "dist/**/*"
- "dist"
- "composer.json"
- "package.json"
- "webpack.config.js"
- "dev"
- "examples"
48 changes: 42 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,50 @@
{
"plugins": [
"prettier"
],
"extends": [
"airbnb",
"prettier"
],
"rules": {
"camelcase": [
"error",
{
"allow": ["^unstable_"]
}
],
"no-unused-vars": [
2,
{
"args": "all",
"argsIgnorePattern": "^_"
}
],
"no-warning-comments": 0,
"prettier/prettier": [
"error",
{
"endOfLine": "lf",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
],
"space-before-function-paren": 0,
"func-names": 0,
"semi": [1, "always"] // 1 is for warning
},
"env": {
"jest": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
"sourceType": "module",
},
"settings": {
"react": {
"version": '999.999.999',
},
},
"rules": {
"camelcase": ["error", { "allow": ["^unstable_"] }],
"no-unused-vars": [2, { "args": "all", "argsIgnorePattern": "^_" }],
"no-warning-comments": 0
}
}
10 changes: 5 additions & 5 deletions dist/decanter-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* plugins.
*/

/*! tailwindcss v2.1.1 | MIT License | https://tailwindcss.com
/*! tailwindcss v2.1.2 | MIT License | https://tailwindcss.com
*/

/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
Expand All @@ -20,8 +20,8 @@ Use a better box model (opinionated).
*/

*,
*::before,
*::after {
::before,
::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
Expand All @@ -30,7 +30,7 @@ Use a better box model (opinionated).
Use a more readable tab size (opinionated).
*/

:root {
html {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
Expand Down
10 changes: 5 additions & 5 deletions dist/decanter.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* This injects Tailwind's base styles and any base styles registered by
* plugins.
*/
/*! tailwindcss v2.1.1 | MIT License | https://tailwindcss.com */
/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*! tailwindcss v2.1.2 | MIT License | https://tailwindcss.com */
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
Expand All @@ -24,15 +24,15 @@ Document
Use a better box model (opinionated).
*/
*,
*::before,
*::after {
::before,
::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/**
Use a more readable tab size (opinionated).
*/
:root {
html {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
Expand Down
Loading