Skip to content

Commit 44043db

Browse files
committed
fix: linted all assets with updated tooling
1 parent a86ab34 commit 44043db

18 files changed

Lines changed: 7715 additions & 5275 deletions

.eslintrc

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"es2022": true
6+
},
7+
"parserOptions": {
8+
"sourceType": "module"
9+
},
10+
"extends": "eslint:recommended",
11+
"rules": {
12+
"brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
13+
"func-call-spacing": ["warn", "never"],
14+
"indent": ["warn", "tab", { "ignoredNodes": ["TemplateLiteral *"], "SwitchCase": 1 }],
15+
"linebreak-style": ["warn", "unix"],
16+
"no-console": ["warn", { "allow": ["warn", "error"] }],
17+
"quotes": ["warn", "double"],
18+
"semi": ["warn", "always"],
19+
"space-before-blocks": ["warn", "always"]
20+
},
21+
"overrides": [
22+
{
23+
"files": ["*.json"],
24+
"parser": "jsonc-eslint-parser",
25+
"extends": ["plugin:jsonc/recommended-with-jsonc"],
26+
},
27+
{
28+
"files": ["package.json"],
29+
"parser": "jsonc-eslint-parser",
30+
"rules": {
31+
"jsonc/sort-keys": [
32+
"warn",
33+
{
34+
"pathPattern": "^$",
35+
"order": [
36+
"$schema",
37+
"private",
38+
"name",
39+
"version",
40+
"description",
41+
"license",
42+
"author",
43+
"maintainers",
44+
"contributors",
45+
"homepage",
46+
"repository",
47+
"bugs",
48+
"type",
49+
"exports",
50+
"main",
51+
"module",
52+
"browser",
53+
"man",
54+
"preferGlobal",
55+
"bin",
56+
"files",
57+
"directories",
58+
"scripts",
59+
"config",
60+
"sideEffects",
61+
"types",
62+
"typings",
63+
"workspaces",
64+
"resolutions",
65+
"dependencies",
66+
"bundleDependencies",
67+
"bundledDependencies",
68+
"peerDependencies",
69+
"peerDependenciesMeta",
70+
"optionalDependencies",
71+
"devDependencies",
72+
"keywords",
73+
"engines",
74+
"engineStrict",
75+
"os",
76+
"cpu",
77+
"publishConfig"
78+
]
79+
},
80+
{
81+
"pathPattern": "^repository$",
82+
"order": ["type", "url", "directory"]
83+
},
84+
{
85+
"pathPattern": "^spectrum$",
86+
"order": { "type": "asc" }
87+
},
88+
{
89+
"pathPattern": "^exports$",
90+
"order": ["."]
91+
},
92+
{
93+
"pathPattern": ".*",
94+
"order": { "type": "asc" }
95+
}
96+
]
97+
}
98+
}
99+
]
100+
}

.github/workflows/testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
node-version: 20
1919
- name: Install dependencies
2020
run: yarn install --frozen-lockfile
21+
- name: Run lint
22+
run: yarn lint
2123
- name: Run test suite
2224
run: yarn test
2325

.gitignore

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,8 @@ lib-cov
2323
coverage
2424
*.lcov
2525

26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
4126
# Dependency directories
4227
node_modules/
43-
jspm_packages/
44-
45-
# Snowpack dependency directory (https://snowpack.dev/)
46-
web_modules/
47-
4828
# TypeScript cache
4929
*.tsbuildinfo
5030

@@ -54,18 +34,6 @@ web_modules/
5434
# Optional eslint cache
5535
.eslintcache
5636

57-
# Optional stylelint cache
58-
.stylelintcache
59-
60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
65-
66-
# Optional REPL history
67-
.node_repl_history
68-
6937
# Output of 'npm pack'
7038
*.tgz
7139

@@ -79,46 +47,6 @@ web_modules/
7947
.env.production.local
8048
.env.local
8149

82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
.parcel-cache
85-
86-
# Next.js build output
87-
.next
88-
out
89-
90-
# Nuxt.js build / generate output
91-
.nuxt
92-
dist
93-
94-
# Gatsby files
95-
.cache/
96-
# Comment in the public line in if your project uses Gatsby and not Next.js
97-
# https://nextjs.org/blog/next-9-1#public-directory-support
98-
# public
99-
100-
# vuepress build output
101-
.vuepress/dist
102-
103-
# vuepress v2.x temp and cache directory
104-
.temp
105-
.cache
106-
107-
# Docusaurus cache and generated files
108-
.docusaurus
109-
110-
# Serverless directories
111-
.serverless/
112-
113-
# FuseBox cache
114-
.fusebox/
115-
116-
# DynamoDB Local files
117-
.dynamodb/
118-
119-
# TernJS port file
120-
.tern-port
121-
12250
# Stores VSCode versions used for testing VSCode extensions
12351
.vscode-test
12452

.markdownlint.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"extends": "markdownlint/style/prettier",
3-
"first-line-h1": false,
4-
"no-inline-html": false,
5-
"no-bare-urls": false,
6-
"no-duplicate-heading": {
7-
"siblings_only": true
8-
},
9-
"code-block-style": {
10-
"style": "fenced"
11-
},
12-
"code-fence-style": {
13-
"style": "backtick"
14-
},
15-
"emphasis-style": {
16-
"style": "underscore"
17-
},
18-
"strong-style": {
19-
"style": "asterisk"
20-
},
21-
"ul-style": {
22-
"style": "dash"
23-
}
2+
"extends": "markdownlint/style/prettier",
3+
"first-line-h1": false,
4+
"no-inline-html": false,
5+
"no-bare-urls": false,
6+
"no-duplicate-heading": {
7+
"siblings_only": true
8+
},
9+
"code-block-style": {
10+
"style": "fenced"
11+
},
12+
"code-fence-style": {
13+
"style": "backtick"
14+
},
15+
"emphasis-style": {
16+
"style": "underscore"
17+
},
18+
"strong-style": {
19+
"style": "asterisk"
20+
},
21+
"ul-style": {
22+
"style": "dash"
23+
}
2424
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.*
1+
22.*

.prettierignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Tooling config files
2+
**/.git
3+
**/.svn
4+
**/.hg
5+
**/node_modules
6+
7+
# OS generated files
8+
.DS_Store*
9+
ehthumbs.db
10+
Icon?
11+
Thumbs.db
12+
*~
13+
*.swp
14+
15+
# Test files
16+
expected/*
17+
fixtures/*
18+
19+
# JS and JSON files (linted by ESLint)
20+
*.js
21+
*.json
22+
23+
# Package files
24+
package.json
25+
yarn.lock

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
## [1.0.1](https://github.com/castastrophe/glob-concat-cli/compare/v1.0.0...v1.0.1) (2023-09-20)
1+
# Change log
22

3+
## [1.0.1](https://github.com/castastrophe/glob-concat-cli/compare/v1.0.0...v1.0.1) (2023-09-20)
34

45
### Bug Fixes
56

6-
* dependencies pulled out of devDep ([6a707ce](https://github.com/castastrophe/glob-concat-cli/commit/6a707ce67dc784844cfe437974cb69fb5d9c4f64))
7-
* update utf-8 syntax ([f838208](https://github.com/castastrophe/glob-concat-cli/commit/f838208b19798fa03e25ac373211794199c81373))
8-
9-
# 1.0.0 (2023-09-19)
7+
- dependencies pulled out of devDep ([6a707ce](https://github.com/castastrophe/glob-concat-cli/commit/6a707ce67dc784844cfe437974cb69fb5d9c4f64))
8+
- update utf-8 syntax ([f838208](https://github.com/castastrophe/glob-concat-cli/commit/f838208b19798fa03e25ac373211794199c81373))
109

10+
## 1.0.0 (2023-09-19)
1111

1212
### Features
1313

14-
* initialize glob concatenation project ([cacd612](https://github.com/castastrophe/glob-concat-cli/commit/cacd612ab660707429c9d87df9a66972df5b185e))
14+
- initialize glob concatenation project ([cacd612](https://github.com/castastrophe/glob-concat-cli/commit/cacd612ab660707429c9d87df9a66972df5b185e))

cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ yargs
8989
.catch((error) => {
9090
console.error(error.message);
9191
process.exit(1);
92-
})
92+
}),
9393
)
9494
.example(
9595
"glob-concat *.css -o index.css",
96-
"This will concatenate the found *.css files to index.css"
96+
"This will concatenate the found *.css files to index.css",
9797
)
9898
.showHelpOnFail(true, "Specify --help for available options")
9999
.help(true)

commitlint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export default {
22
extends: ["@commitlint/config-conventional"],
33
rules: {
44
"body-max-line-length": [0, "always", Infinity],
5-
}
6-
}
5+
},
6+
};

0 commit comments

Comments
 (0)