justintime50-styles 0.6.0 → 0.8.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.
@@ -6,9 +6,11 @@ jobs:
6
6
  lint:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v3
10
- - uses: actions/setup-node@v3
9
+ - uses: actions/checkout@v4
10
+ - uses: actions/setup-node@v4
11
11
  with:
12
- node-version: '20'
13
- - run: npm install
14
- - run: npm run format-check
12
+ node-version: '22'
13
+ - run: |
14
+ npm install
15
+ npm run format-check
16
+ npm run lint
@@ -9,12 +9,13 @@ jobs:
9
9
  release:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v3
13
- - uses: actions/setup-node@v3
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-node@v4
14
14
  with:
15
- node-version: '20'
15
+ node-version: '22'
16
16
  registry-url: 'https://registry.npmjs.org'
17
- - run: npm install
18
- - run: npm publish
17
+ - run: |
18
+ npm install
19
+ npm publish
19
20
  env:
20
21
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.8.0 (2025-05-12)
4
+
5
+ - Warn on unused uses for PHP
6
+
7
+ ## v0.7.0 (2025-01-07)
8
+
9
+ - Migrates ESLint config from v8 to v9 syntax
10
+ - Adds Node and PHP minimum version constraints
11
+
3
12
  ## v0.6.0 (2024-05-31)
4
13
 
5
14
  - Ignores `at-rule-no-unknown` in CSS linting.
package/composer.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "justintime50/styles",
3
3
  "description": "A collection of style guides and best practices used for my projects and teams.",
4
- "version": "0.6.0",
4
+ "version": "0.8.0",
5
5
  "license": "MIT",
6
6
  "type": "library",
7
7
  "homepage": "https://github.com/Justintime50/styles",
@@ -11,5 +11,15 @@
11
11
  "email": "39606064+Justintime50@users.noreply.github.com"
12
12
  }
13
13
  ],
14
- "require": {}
14
+ "require": {
15
+ "php": "^8.0"
16
+ },
17
+ "require-dev": {
18
+ "slevomat/coding-standard": "^8.18"
19
+ },
20
+ "config": {
21
+ "allow-plugins": {
22
+ "dealerdirect/phpcodesniffer-composer-installer": true
23
+ }
24
+ }
15
25
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "justintime50-styles",
3
3
  "description": "A collection of style guides and best practices used for my projects and teams.",
4
- "version": "0.6.0",
4
+ "version": "0.8.0",
5
5
  "author": "Justintime50",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/justintime50/styles",
@@ -9,11 +9,17 @@
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/justintime50/styles.git"
11
11
  },
12
+ "engines": {
13
+ "node": ">=16.0"
14
+ },
12
15
  "devDependencies": {
13
- "prettier": "^2.8.0"
16
+ "eslint": "^9.0",
17
+ "prettier": "^3.4"
14
18
  },
15
19
  "scripts": {
16
20
  "format": "prettier --config src/javascript/.prettierrc.yaml --write .",
17
- "format-check": "prettier --config src/javascript/.prettierrc.yaml --check ."
21
+ "format-check": "prettier --config src/javascript/.prettierrc.yaml --check .",
22
+ "lint": "eslint --config src/javascript/eslint.config.js .",
23
+ "lint-fix": "eslint --config src/javascript/eslint.config.js --fix ."
18
24
  }
19
25
  }
@@ -0,0 +1,18 @@
1
+ // ESLint v9+ Config Syntax
2
+ import js from '@eslint/js';
3
+ import globals from 'globals';
4
+
5
+ export default [
6
+ js.configs.recommended,
7
+ {
8
+ languageOptions: {
9
+ ecmaVersion: 2024,
10
+ sourceType: 'module',
11
+ globals: {
12
+ ...globals.browser,
13
+ ...globals.node,
14
+ ...globals.mocha,
15
+ },
16
+ },
17
+ },
18
+ ];
package/src/php/phpcs.xml CHANGED
@@ -35,4 +35,5 @@
35
35
  <rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps" />
36
36
  <rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired" />
37
37
  <rule ref="vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/InlineCommentSniff.php" />
38
+ <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>
38
39
  </ruleset>
@@ -1,8 +0,0 @@
1
- # Specify the env on a project basis via the CLI
2
- # env:
3
- # commonjs: true
4
- # es6: true
5
- # node: true
6
- extends: 'eslint:recommended'
7
- parserOptions:
8
- ecmaVersion: 2022