Skip to content

Commit c202c0d

Browse files
rejasVeeck
authored and
Veeck
committed
Add prettier, configs and editorconfig
1 parent 8a1f9b7 commit c202c0d

11 files changed

+118
-341
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
max_line_length = 250
11+
trim_trailing_whitespace = true
12+
13+
[*.{js,json}]
14+
indent_size = 4
15+
indent_style = tab

.eslintrc.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "eslint:recommended",
2+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
3+
"plugins": ["prettier"],
34
"env": {
45
"browser": true,
56
"es6": true,
@@ -19,8 +20,9 @@
1920
"ecmaFeatures": {
2021
"globalReturn": true
2122
}
22-
},
23+
},
2324
"rules": {
25+
"prettier/prettier": "error",
2426
"eqeqeq": "error",
2527
"no-prototype-builtins": "off",
2628
"no-unused-vars": "off"

.markdownlintignore

-1
This file was deleted.

.markdownlintrc.json

-23
This file was deleted.

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package-lock.json
2+
/config/**/*
3+
/modules/default/calendar/vendor/ical.js/**/*
4+
/vendor/**/*
5+
!/vendor/vendor.js

.prettierrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingComma": "none"
3+
}

.stylelintrc.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"extends": "stylelint-config-standard",
3-
"font-family-name-quotes": "double-where-recommended",
4-
"block-no-empty": false,
5-
"ignoreFiles": ["./modules/default/alert/ns-default.css"]
2+
"extends": ["stylelint-prettier/recommended"],
3+
"plugins": ["stylelint-prettier"],
4+
"rules": {
5+
"prettier/prettier": true
6+
}
67
}

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ before_script:
1313
- "sh -e /etc/init.d/xvfb start"
1414
- sleep 5
1515
script:
16-
- npm run test:lint
16+
- npm run test:prettier
17+
- npm run test:js
18+
- npm run test:css
1719
- npm run test:e2e
1820
- npm run test:unit
1921
after_script:

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1111

1212
### Added
1313

14+
- Added prettier for an even cleaner codebase
15+
1416
### Updated
1517
- Cleaned up alert module code
1618
- Cleaned up check_config code

0 commit comments

Comments
 (0)