stylelint-config-nick2bad4u 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nick2bad4u
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,83 @@
1
+ # stylelint-config-nick2bad4u
2
+
3
+ Shared Stylelint config for Nick2bad4u projects.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install --save-dev stylelint-config-nick2bad4u stylelint
9
+ ```
10
+
11
+ This package ships the Stylelint configs, plugins, and custom syntaxes needed
12
+ by the shared preset. Consuming projects only need to provide their own
13
+ `stylelint` installation.
14
+
15
+ ## Usage
16
+
17
+ Use it as an extended shared config in your project `.stylelintrc.*`:
18
+
19
+ ```json
20
+ {
21
+ "extends": ["stylelint-config-nick2bad4u"]
22
+ }
23
+ ```
24
+
25
+ Or in `stylelint.config.mjs`:
26
+
27
+ ```js
28
+ import config from "stylelint-config-nick2bad4u";
29
+
30
+ export default config;
31
+ ```
32
+
33
+ If you prefer to keep a local config wrapper for overrides, compose it like
34
+ this:
35
+
36
+ ```js
37
+ import sharedConfig from "stylelint-config-nick2bad4u";
38
+
39
+ export default {
40
+ ...sharedConfig,
41
+ rules: {
42
+ ...sharedConfig.rules,
43
+ "declaration-no-important": null,
44
+ },
45
+ };
46
+ ```
47
+
48
+ ## What this config includes
49
+
50
+ - Standard modern Stylelint presets
51
+ - SCSS support
52
+ - Tailwind compatibility
53
+ - Docusaurus CSS support
54
+ - Accessibility, logical CSS, and performance plugins
55
+
56
+ ## Supported syntax surfaces
57
+
58
+ The shared config includes overrides and parsers for:
59
+
60
+ - plain CSS
61
+ - SCSS / Sass
62
+ - HTML with inline styles
63
+ - CSS-in-JS in JS / TS / JSX / TSX
64
+ - styled-jsx
65
+ - CSS Modules
66
+
67
+ ## Package notes
68
+
69
+ - Package entrypoint: `stylelint.config.mjs`
70
+ - Export style: ESM only
71
+ - Peer dependency: `stylelint@^17.9.1`
72
+
73
+ ## Development checks
74
+
75
+ Run before publishing or opening a PR:
76
+
77
+ ```sh
78
+ npm run lint:all
79
+ npm run coverage
80
+ npm run release:verify
81
+ ```
82
+
83
+ For maintainers, see [MAINTAINER_GUIDE.md](./MAINTAINER_GUIDE.md).
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import type { Config } from "stylelint";
2
+
3
+ declare const sharedConfig: Config;
4
+
5
+ export default sharedConfig;
package/package.json ADDED
@@ -0,0 +1,194 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/package.json",
3
+ "name": "stylelint-config-nick2bad4u",
4
+ "version": "1.0.0",
5
+ "private": false,
6
+ "description": "Shared Stylelint config for Nick2bad4u projects.",
7
+ "keywords": [
8
+ "stylelint",
9
+ "stylelint-config",
10
+ "css",
11
+ "scss",
12
+ "linting"
13
+ ],
14
+ "homepage": "https://github.com/Nick2bad4u/stylelint-config-nick2bad4u#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/issues",
17
+ "email": "20943337+Nick2bad4u@users.noreply.github.com"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/Nick2bad4u/stylelint-config-nick2bad4u.git"
22
+ },
23
+ "license": "MIT",
24
+ "author": "Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com> (https://github.com/Nick2bad4u)",
25
+ "contributors": [
26
+ {
27
+ "name": "Nick2bad4u",
28
+ "email": "20943337+Nick2bad4u@users.noreply.github.com",
29
+ "url": "https://github.com/Nick2bad4u"
30
+ }
31
+ ],
32
+ "sideEffects": false,
33
+ "type": "module",
34
+ "exports": {
35
+ ".": {
36
+ "types": "./index.d.ts",
37
+ "import": "./stylelint.config.mjs",
38
+ "require": null
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
42
+ "main": "./stylelint.config.mjs",
43
+ "types": "./index.d.ts",
44
+ "files": [
45
+ "index.d.ts",
46
+ "stylelint.config.d.mts",
47
+ "stylelint.config.mjs"
48
+ ],
49
+ "scripts": {
50
+ "build": "npm run typecheck",
51
+ "changelog:generate": "git-cliff --config cliff.toml --output CHANGELOG.md",
52
+ "changelog:preview": "git-cliff --config cliff.toml --unreleased",
53
+ "changelog:release-notes": "git-cliff --config cliff.toml --latest --strip all",
54
+ "coverage": "vitest run --coverage",
55
+ "lint": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint . --cache --cache-strategy content --cache-location .cache/.eslintcache",
56
+ "lint:all": "npm run lint && npm run typecheck && npm run test && npm run lint:prettier && npm run lint:package && npm run lint:yaml && npm run lint:secretlint",
57
+ "lint:all:fix": "npm run lint:fix && npm run lint:prettier:fix && npm run lint:package:fix && npm run typecheck && npm run test && npm run lint:yaml:fix && npm run lint:secretlint",
58
+ "lint:attw": "attw --pack . --profile esm-only",
59
+ "lint:fix": "npm run lint -- --fix",
60
+ "lint:package": "npm run lint:package-sort && npm run lint:package-json && npm run lint:package-check",
61
+ "lint:package:fix": "sort-package-json package.json",
62
+ "lint:package-check": "npm run package:check && npm run lint:publint && npm run lint:attw",
63
+ "lint:package-fix": "npm run lint:package:fix",
64
+ "lint:package-json": "npmPkgJsonLint . --config .npmpackagejsonlintrc.json",
65
+ "lint:package-sort": "sort-package-json --check package.json",
66
+ "lint:prettier": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --check",
67
+ "lint:prettier:fix": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --write",
68
+ "lint:publint": "publint",
69
+ "lint:secretlint": "secretlint --secretlintrc .secretlintrc.json --secretlintignore .gitignore \"**/*\"",
70
+ "lint:yaml": "eslint --cache --cache-strategy content --cache-location .cache/.eslintcache \"**/*.{yml,yaml}\"",
71
+ "lint:yaml:fix": "npm run lint:yaml -- --fix",
72
+ "package:check": "npm pack --dry-run",
73
+ "release:check": "npm run release:verify",
74
+ "release:verify": "npm run build && npm run lint:all && npm run lint:package-check",
75
+ "sync:node-version": "node scripts/sync-node-version-files.mjs",
76
+ "sync:peer-stylelint": "node scripts/sync-peer-stylelint-range.mjs",
77
+ "test": "vitest run",
78
+ "test:coverage": "npm run coverage",
79
+ "typecheck": "tsc -p tsconfig.build.json && tsc -p tsconfig.json --noEmit && tsc -p tsconfig.eslint.json --noEmit && tsc -p tsconfig.js.json --noEmit && tsc -p tsconfig.vitest-typecheck.json --noEmit",
80
+ "typecheck:all": "npm run typecheck",
81
+ "types:update": "typesync",
82
+ "update-deps": "npx ncu -i --install never && npm update --force && npm install --force && npm run sync:peer-stylelint && npm run sync:node-version",
83
+ "verify": "npm run release:verify"
84
+ },
85
+ "dependencies": {
86
+ "@csstools/stylelint-formatter-github": "^2.0.0",
87
+ "@double-great/stylelint-a11y": "^3.4.10",
88
+ "@stylelint-types/stylelint-order": "^7.0.1",
89
+ "@stylelint-types/stylelint-stylistic": "^5.0.0",
90
+ "@stylistic/stylelint-plugin": "^5.1.0",
91
+ "postcss-html": "^1.8.1",
92
+ "postcss-scss": "^4.0.9",
93
+ "postcss-styled-jsx": "^1.0.1",
94
+ "postcss-styled-syntax": "^0.7.1",
95
+ "stylelint-checkstyle-formatter": "^0.1.2",
96
+ "stylelint-codeframe-formatter": "^1.2.0",
97
+ "stylelint-config-alphabetical-order": "^2.0.0",
98
+ "stylelint-config-idiomatic-order": "^10.0.0",
99
+ "stylelint-config-inspector": "^2.1.2",
100
+ "stylelint-config-recess-order": "^7.7.0",
101
+ "stylelint-config-recommended": "^18.0.0",
102
+ "stylelint-config-sass-guidelines": "^13.0.0",
103
+ "stylelint-config-standard": "^40.0.0",
104
+ "stylelint-config-standard-scss": "^17.0.0",
105
+ "stylelint-config-tailwindcss": "^1.0.1",
106
+ "stylelint-declaration-block-no-ignored-properties": "^3.0.0",
107
+ "stylelint-declaration-strict-value": "^1.11.1",
108
+ "stylelint-define-config": "^17.9.0",
109
+ "stylelint-find-new-rules": "^6.0.0",
110
+ "stylelint-formatter-gitlab-code-quality-report": "^1.1.0",
111
+ "stylelint-formatter-pretty": "^4.0.1",
112
+ "stylelint-gamut": "^2.0.0",
113
+ "stylelint-group-selectors": "^1.0.10",
114
+ "stylelint-high-performance-animation": "^2.0.0",
115
+ "stylelint-media-use-custom-media": "^4.1.0",
116
+ "stylelint-no-browser-hacks": "^2.0.2",
117
+ "stylelint-no-unsupported-browser-features": "^8.1.1",
118
+ "stylelint-order": "^8.1.1",
119
+ "stylelint-plugin-defensive-css": "^2.9.1",
120
+ "stylelint-plugin-docusaurus": "^2.0.0",
121
+ "stylelint-plugin-logical-css": "^2.1.0",
122
+ "stylelint-plugin-use-baseline": "^1.4.1",
123
+ "stylelint-prettier": "^5.0.3",
124
+ "stylelint-scales": "^5.0.0",
125
+ "stylelint-scss": "^7.0.0",
126
+ "stylelint-use-nesting": "^6.0.2",
127
+ "stylelint-value-no-unknown-custom-properties": "^6.1.1"
128
+ },
129
+ "devDependencies": {
130
+ "@arethetypeswrong/cli": "^0.18.2",
131
+ "@secretlint/secretlint-rule-anthropic": "^12.3.1",
132
+ "@secretlint/secretlint-rule-aws": "^12.3.1",
133
+ "@secretlint/secretlint-rule-database-connection-string": "^12.3.1",
134
+ "@secretlint/secretlint-rule-gcp": "^12.3.1",
135
+ "@secretlint/secretlint-rule-github": "^12.3.1",
136
+ "@secretlint/secretlint-rule-no-dotenv": "^12.3.1",
137
+ "@secretlint/secretlint-rule-no-homedir": "^12.3.1",
138
+ "@secretlint/secretlint-rule-npm": "^12.3.1",
139
+ "@secretlint/secretlint-rule-openai": "^12.3.1",
140
+ "@secretlint/secretlint-rule-pattern": "^12.3.1",
141
+ "@secretlint/secretlint-rule-privatekey": "^12.3.1",
142
+ "@secretlint/secretlint-rule-secp256k1-privatekey": "^12.3.1",
143
+ "@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
144
+ "@types/node": "^25.6.0",
145
+ "@vitest/coverage-v8": "^4.1.5",
146
+ "cross-env": "^10.1.0",
147
+ "eslint": "^10.3.0",
148
+ "eslint-config-nick2bad4u": "^1.0.5",
149
+ "git-cliff": "^2.13.1",
150
+ "npm-package-json-lint": "^10.3.0",
151
+ "picocolors": "^1.1.1",
152
+ "prettier": "^3.8.3",
153
+ "prettier-plugin-ini": "^1.3.0",
154
+ "prettier-plugin-interpolated-html-tags": "^2.0.1",
155
+ "prettier-plugin-jsdoc": "^1.8.0",
156
+ "prettier-plugin-merge": "^0.10.1",
157
+ "prettier-plugin-multiline-arrays": "^4.1.7",
158
+ "prettier-plugin-packagejson": "^3.0.2",
159
+ "prettier-plugin-properties": "^0.3.1",
160
+ "prettier-plugin-sort-json": "^4.2.0",
161
+ "prettier-plugin-toml": "^2.0.6",
162
+ "publint": "^0.3.18",
163
+ "secretlint": "^12.3.1",
164
+ "sort-package-json": "^3.6.1",
165
+ "stylelint": "^17.9.1",
166
+ "typescript": "^6.0.3",
167
+ "vite": "^8.0.10",
168
+ "vitest": "^4.1.5"
169
+ },
170
+ "peerDependencies": {
171
+ "stylelint": "^17.9.1"
172
+ },
173
+ "packageManager": "npm@11.13.0",
174
+ "engines": {
175
+ "node": ">=22.0.0"
176
+ },
177
+ "devEngines": {
178
+ "runtime": {
179
+ "name": "node",
180
+ "version": ">=22.0.0",
181
+ "onFail": "error"
182
+ },
183
+ "packageManager": {
184
+ "name": "npm",
185
+ "version": ">=11.0.0",
186
+ "onFail": "error"
187
+ }
188
+ },
189
+ "publishConfig": {
190
+ "provenance": true,
191
+ "registry": "https://registry.npmjs.org/"
192
+ },
193
+ "readme": "README.md"
194
+ }
@@ -0,0 +1,5 @@
1
+ import type { Config } from "stylelint";
2
+
3
+ declare const config: Config;
4
+
5
+ export default config;