flatlint 1.5.1 → 1.6.1

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/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2024.12.29, v1.6.1
2
+
3
+ feature:
4
+ - e86c394 flatlint: shorthands: add
5
+
6
+ 2024.12.29, v1.6.0
7
+
8
+ feature:
9
+ - 7efe064 flatlint: add shorthands
10
+
1
11
  2024.12.29, v1.5.1
2
12
 
3
13
  feature:
@@ -1,11 +1,11 @@
1
- import {prepare} from '../parser/index.js';
1
+ import {prepare} from '#parser';
2
2
  import {
3
3
  isId,
4
4
  isIdentifier,
5
5
  isPunctuator,
6
6
  isQuote,
7
7
  isStringLiteral,
8
- } from '../types/types.js';
8
+ } from '#types';
9
9
 
10
10
  export const compare = (source, template) => {
11
11
  const templateTokens = prepare(template);
@@ -100,3 +100,4 @@ function equalId(a, b) {
100
100
 
101
101
  return isId(b.value);
102
102
  }
103
+
package/lib/flatlint.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {loadPlugins} from '@putout/engine-loader';
2
- import {run} from './runner/runner.js';
3
- import {parse} from './parser/index.js';
2
+ import {parse} from '#parser';
3
+ import {run} from '#runner';
4
4
 
5
5
  export function lint(source, overrides = {}) {
6
6
  const {fix = true, plugins: pluginNames = []} = overrides;
@@ -1,7 +1,7 @@
1
- import {compare} from '../compare/compare.js';
2
- import {traverse} from '../traverser/traverser.js';
3
- import {is} from '../types/types.js';
4
- import {prepare} from '../parser/index.js';
1
+ import {is} from '#types';
2
+ import {prepare} from '#parser';
3
+ import {compare} from '#compare';
4
+ import {traverse} from '#traverser';
5
5
 
6
6
  const {entries} = Object;
7
7
 
@@ -90,3 +90,4 @@ function setValues({to, waysTo, values}) {
90
90
  to[index] = values[name];
91
91
  }
92
92
  }
93
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.5.1",
3
+ "version": "1.6.1",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -14,6 +14,18 @@
14
14
  "#types": {
15
15
  "default": "./lib/types/types.js"
16
16
  },
17
+ "#parser": {
18
+ "default": "./lib/parser/parser.js"
19
+ },
20
+ "#traverser": {
21
+ "default": "./lib/traverser/traverser.js"
22
+ },
23
+ "#compare": {
24
+ "default": "./lib/compare/compare.js"
25
+ },
26
+ "#runner": {
27
+ "default": "./lib/runner/runner.js"
28
+ },
17
29
  "#flatlint": {
18
30
  "default": "./lib/flatlint.js"
19
31
  }
package/example/1.js DELETED
@@ -1 +0,0 @@
1
-
File without changes