File tree 4 files changed +19
-1
lines changed
4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ declare function hasStrictMode ( ) : boolean ;
2
+
3
+ export = hasStrictMode ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ /** @type {import('.') } */
3
4
module . exports = function hasStrictMode ( ) {
4
5
return ! this ;
5
6
} ;
Original file line number Diff line number Diff line change 9
9
"prepublish" : " not-in-publish || npm run prepublishOnly" ,
10
10
"pretest" : " npm run lint" ,
11
11
"lint" : " eslint --ext=js,mjs ." ,
12
+ "postlint" : " tsc && attw -P" ,
12
13
"tests-only" : " nyc tape 'test/**/*.js'" ,
13
14
"test" : " npm run tests-only" ,
14
15
"posttest" : " npx npm@\" >= 10.2\" audit --production" ,
37
38
},
38
39
"homepage" : " https://github.com/inspect-js/has-strict-mode#readme" ,
39
40
"devDependencies" : {
41
+ "@arethetypeswrong/cli" : " ^0.17.3" ,
40
42
"@ljharb/eslint-config" : " ^21.1.1" ,
43
+ "@ljharb/tsconfig" : " ^0.2.3" ,
44
+ "@types/tape" : " ^5.8.1" ,
41
45
"auto-changelog" : " ^2.5.0" ,
42
46
"encoding" : " ^0.1.13" ,
43
47
"eslint" : " =8.8.0" ,
44
48
"in-publish" : " ^2.0.1" ,
45
49
"npmignore" : " ^0.3.1" ,
46
50
"nyc" : " ^10.3.2" ,
47
51
"safe-publish-latest" : " ^2.0.0" ,
48
- "tape" : " ^5.9.0"
52
+ "tape" : " ^5.9.0" ,
53
+ "typescript" : " next"
49
54
},
50
55
"auto-changelog" : {
51
56
"output" : " CHANGELOG.md" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " @ljharb/tsconfig" ,
3
+ "compilerOptions" : {
4
+ "target" : " ES2021" ,
5
+ },
6
+ "exclude" : [
7
+ " coverage" ,
8
+ ],
9
+ }
You can’t perform that action at this time.
0 commit comments