...
 
Commits (13)
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{yaml,json}]
indent_size = 2
indent_style = space
[*.md]
trim_trailing_whitespace = false
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jquery": true
},
"globals": {
"moment": true,
"_": true
},
"parserOptions": {
"sourceType": "module"
},
"plugins": ["prettier"],
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"prettier/prettier": "error",
"indent": 0,
"no-tabs": 0,
"global-require": 0,
"import/prefer-default-export": 0,
"class-methods-use-this": 0,
"no-console": "off",
"no-unused-vars": [
"error",
{
"args": "none"
}
],
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs"],
"comma-spacing": ["error", { "before": false, "after": true }]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
}
}
## JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
*.iml
.idea/
.tmp/
jsconfig.json
## Sublime workspace files
*.sublime-workspace
## Visual Studio Code
.vscode/
# node/bower
node_modules/
npm-debug.log
bower_components/
*.log.*
# Mac system files
.DS_Store
# Blacklight files
blacklight_modules/
# sass
.sach-cache/
# Conflict resolution files
*.orig
{
"useTabs": true,
"trailingComma": "es5",
"singleQuote": true,
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"printWidth": 100
}
{
"plugins": ["stylelint-scss"],
"extends": "stylelint-config-suitcss",
"rules": {
"indentation": "tab",
"declaration-colon-newline-after": null,
"function-comma-newline-after": null,
"function-parentheses-newline-inside": null,
"selector-no-vendor-prefix": null,
"string-quotes": "single",
"value-no-vendor-prefix": null,
"order/properties-alphabetical-order": null,
"rule-empty-line-before": null,
"at-rule-empty-line-before": [
"always",
{
"except": ["blockless-after-blockless", "first-nested"],
"ignore": ["after-comment"],
"ignoreAtRules": ["if", "else"]
}
],
"property-no-vendor-prefix": null,
"value-list-comma-newline-after": null,
"block-closing-brace-newline-after": [
"always",
{
"ignoreAtRules": ["if", "else"]
}
]
}
}
Some change
\ No newline at end of file
# JavaScript Blacklight Module Template
This is the initial setup for a new JavaScript Blacklight module.
## Directories
```
.
├── apps # Module specific routes and helper functions
├── components # Code to process data and the templates to render that data
├── public # Assets to be served to the browser (JS, CSS, images)
└── ...
```
## Running Tests
Run test with `yarn test`.
Run tests with watcher by running `yarn test-watch`.
## Formatting / Linting
On `git commit`, the following formatters/linters will be run on your code:
- Prettier
- `**/*.js`
- `**/*.json`
- ESLint
- `**/*.js`
- StyleLint
- `public/**/*.css`
# Apps
Module specific routes and helper functions
# Components
Code to process data and the templates to render that data
{
"name": "__NAME__",
"version": "0.0.1",
"description": "New BL module",
"scripts": {
"test": "jest --verbose",
"test-watch": "yarn test -- --watch"
},
"dependencies": {},
"devDependencies": {
"eslint": "^7.0.0",
"husky": "^4.2.5",
"jest": "^26.0.1",
"lint-staged": "^10.2.4",
"prettier": "^2.0.5",
"stylelint": "^13.4.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.js": [
"npx prettier --write",
"eslint --fix"
],
"**/*.json": [
"npx prettier --write"
],
"public/**/*.css": [
"stylelint --fix"
]
}
}
# Public
Hosts files which are served to web browser (css, js, etc.)