@trenskow/caseit 1.4.0 → 1.4.2

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.
Files changed (2) hide show
  1. package/eslint.config.js +18 -18
  2. package/package.json +29 -29
package/eslint.config.js CHANGED
@@ -1,8 +1,8 @@
1
- import globals from "globals";
2
- import path from "node:path";
3
- import { fileURLToPath } from "node:url";
4
- import js from "@eslint/js";
5
- import { FlatCompat } from "@eslint/eslintrc";
1
+ import globals from 'globals';
2
+ import path from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import js from '@eslint/js';
5
+ import { FlatCompat } from '@eslint/eslintrc';
6
6
 
7
7
  const __filename = fileURLToPath(import.meta.url);
8
8
  const __dirname = path.dirname(__filename);
@@ -12,34 +12,34 @@ const compat = new FlatCompat({
12
12
  allConfig: js.configs.all
13
13
  });
14
14
 
15
- export default [...compat.extends("eslint:recommended"), {
15
+ export default [...compat.extends('eslint:recommended'), {
16
16
  languageOptions: {
17
17
  globals: {
18
18
  ...globals.node,
19
19
  },
20
20
 
21
- ecmaVersion: 2017,
22
- sourceType: "module",
21
+ ecmaVersion: 'latest',
22
+ sourceType: 'module',
23
23
  },
24
24
 
25
25
  rules: {
26
- indent: ["error", "tab"],
27
- "linebreak-style": ["error", "unix"],
28
- quotes: ["error", "single"],
29
- semi: ["error", "always"],
26
+ indent: ['error', 'tab'],
27
+ 'linebreak-style': ['error', 'unix'],
28
+ quotes: ['error', 'single'],
29
+ semi: ['error', 'always'],
30
30
 
31
- "no-console": ["error", {
32
- allow: ["warn", "error", "info"],
31
+ 'no-console': ['error', {
32
+ allow: ['warn', 'error', 'info'],
33
33
  }],
34
34
 
35
- "no-unused-vars": ["error", {
36
- argsIgnorePattern: "^_",
35
+ 'no-unused-vars': ['error', {
36
+ argsIgnorePattern: '^_',
37
37
  }],
38
38
 
39
- "no-empty": ["error", {
39
+ 'no-empty': ['error', {
40
40
  allowEmptyCatch: true,
41
41
  }],
42
42
 
43
- "require-atomic-updates": "off",
43
+ 'require-atomic-updates': 'off',
44
44
  },
45
45
  }];
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
- "name": "@trenskow/caseit",
3
- "version": "1.4.0",
4
- "description": "Small library for converting between different casing.",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/trenskow/caseit.git"
13
- },
14
- "keywords": [
15
- "case",
16
- "string",
17
- "convert"
18
- ],
19
- "author": "Kristian Trenskow <trenskow@me.com>",
20
- "license": "BSD-2-Clause",
21
- "bugs": {
22
- "url": "https://github.com/trenskow/caseit/issues"
23
- },
24
- "homepage": "https://github.com/trenskow/caseit#readme",
25
- "devDependencies": {
26
- "@eslint/eslintrc": "^3.1.0",
27
- "@eslint/js": "^9.13.0",
28
- "eslint": "^9.13.0",
29
- "globals": "^15.11.0"
30
- }
2
+ "name": "@trenskow/caseit",
3
+ "version": "1.4.2",
4
+ "description": "Small library for converting between different casing.",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/trenskow/caseit.git"
13
+ },
14
+ "keywords": [
15
+ "case",
16
+ "string",
17
+ "convert"
18
+ ],
19
+ "author": "Kristian Trenskow <trenskow@me.com>",
20
+ "license": "BSD-2-Clause",
21
+ "bugs": {
22
+ "url": "https://github.com/trenskow/caseit/issues"
23
+ },
24
+ "homepage": "https://github.com/trenskow/caseit#readme",
25
+ "devDependencies": {
26
+ "@eslint/eslintrc": "^3.1.0",
27
+ "@eslint/js": "^9.13.0",
28
+ "eslint": "^9.13.0",
29
+ "globals": "^15.11.0"
30
+ }
31
31
  }